Add the protocol back for backward compatibility.

pull/4282/head
Jorge Canizales 9 years ago
parent f4f150f28b
commit e1f74454ac
  1. 17
      src/objective-c/GRPCClient/GRPCCall.h

@ -231,3 +231,20 @@ extern id const kGRPCTrailersKey;
// TODO(jcanizales): Let specify a deadline. As a category of GRXWriter?
@end
#pragma mark Backwards compatibiity
/** This protocol is kept for backwards compatibility with existing code. */
@protocol GRPCRequestHeaders <NSObject>
@property(nonatomic, readonly) NSUInteger count;
- (id)objectForKeyedSubscript:(NSString *)key;
- (void)setObject:(id)obj forKeyedSubscript:(NSString *)key;
- (void)removeAllObjects;
- (void)removeObjectForKey:(NSString *)key;
@end
/** This is only needed for backwards-compatibility. */
@interface NSMutableDictionary (GRPCRequestHeaders) <GRPCRequestHeaders>
@end

Loading…
Cancel
Save