Skip to content
Snippets Groups Projects
Commit 12da424c authored by Jorge Canizales's avatar Jorge Canizales
Browse files

nit: Documentation and formatting.

parent 5af28688
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,13 @@ ...@@ -55,6 +55,13 @@
extern id const kGRPCHeadersKey; extern id const kGRPCHeadersKey;
extern id const kGRPCTrailersKey; extern id const kGRPCTrailersKey;
// The container of the request headers of an RPC conforms to this protocol, which is a subset of
// NSMutableDictionary's interface. It will become a NSMutableDictionary later on.
// The keys of this container are the header names, which per the HTTP standard are case-
// insensitive. They are stored in lowercase (which is how HTTP/2 mandates them on the wire), and
// can only consist of ASCII characters.
// A header value is a NSString object (with only ASCII characters), unless the header name has the
// suffix "-bin", in which case the value has to be a NSData object.
@protocol GRPCRequestHeaders <NSObject> @protocol GRPCRequestHeaders <NSObject>
@property(nonatomic, readonly) NSUInteger count; @property(nonatomic, readonly) NSUInteger count;
......
...@@ -47,6 +47,6 @@ ...@@ -47,6 +47,6 @@
- (void)setObject:(id)obj forKeyedSubscript:(NSString *)key; - (void)setObject:(id)obj forKeyedSubscript:(NSString *)key;
- (void)removeAllObjects; - (void)removeAllObjects;
- (void)removeObjectForKey:(NSString *)aKey; - (void)removeObjectForKey:(NSString *)key;
@end @end
\ No newline at end of file
...@@ -117,4 +117,4 @@ static void CheckKeyValuePairIsValid(NSString *key, id value) { ...@@ -117,4 +117,4 @@ static void CheckKeyValuePairIsValid(NSString *key, id value) {
- (grpc_metadata *)grpc_metadataArray { - (grpc_metadata *)grpc_metadataArray {
return _proxy.grpc_metadataArray; return _proxy.grpc_metadataArray;
} }
@end @end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment