|
|
@ -139,13 +139,6 @@ typedef NS_ENUM(NSUInteger, GRPCErrorCode) { |
|
|
|
GRPCErrorCodeDataLoss = 15, |
|
|
|
GRPCErrorCodeDataLoss = 15, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* The protocol of an OAuth2 token object from which GRPCCall can acquire a token. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@protocol GRPCAuthorizationProtocol |
|
|
|
|
|
|
|
- (void)getTokenWithHandler:(void (^)(NSString *token))hander; |
|
|
|
|
|
|
|
@end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Safety remark of a gRPC method as defined in RFC 2616 Section 9.1 |
|
|
|
* Safety remark of a gRPC method as defined in RFC 2616 Section 9.1 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -222,14 +215,6 @@ extern id const kGRPCTrailersKey; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@property(atomic, readonly) NSDictionary *responseTrailers; |
|
|
|
@property(atomic, readonly) NSDictionary *responseTrailers; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* The authorization token object to be used when starting the call. If the value is set to nil, no
|
|
|
|
|
|
|
|
* oauth authentication will be used. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* Not compatible with property oauth2AccessToken in GRPCCall (OAuth2). Do not use both at the same time. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@property(atomic, strong) id<GRPCAuthorizationProtocol> tokenProvider; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* The request writer has to write NSData objects into the provided Writeable. The server will |
|
|
|
* The request writer has to write NSData objects into the provided Writeable. The server will |
|
|
|
* receive each of those separately and in order as distinct messages. |
|
|
|
* receive each of those separately and in order as distinct messages. |
|
|
|