Go to the documentation of this file.
37 #import <Foundation/Foundation.h>
47 NS_ASSUME_NONNULL_BEGIN
57 - (void)didReceiveInitialMetadata:(nullable NSDictionary *)initialMetadata;
68 - (void)didReceiveRawMessage:(nullable NSData *)message;
79 - (void)didReceiveData:(
id)data;
87 - (void)didCloseWithTrailingMetadata:(nullable NSDictionary *)trailingMetadata
88 error:(nullable NSError *)error;
109 - (instancetype)initWithHost:(NSString *)host
110 path:(NSString *)path
111 safety:(GRPCCallSafety)safety NS_DESIGNATED_INITIALIZER;
114 @property(copy, readonly) NSString *
host;
116 @property(copy, readonly) NSString *
path;
121 @property(readonly) GRPCCallSafety
safety;
125 #pragma mark GRPCCall
145 NS_DESIGNATED_INITIALIZER;
169 - (void)writeData:(
id)data;
183 - (void)receiveNextMessages:(NSUInteger)numberOfMessages;
195 NS_ASSUME_NONNULL_END
An object that processes its methods with a dispatch queue.
Definition: GRPCDispatchable.h:23
GRPCRequestOptions * requestOptions
Get a copy of the original request options.
Definition: GRPCCall.h:191
void didWriteData()
Issued when flow control is enabled for the call and a message written with GRPCCall2::writeData is p...
A GRPCCall2 object represents an RPC call.
Definition: GRPCCall.h:130
Immutable user configurable options for a gRPC call.
Definition: GRPCCallOptions.h:32
NSString * host
The host serving the RPC service.
Definition: GRPCCall.h:114
GRPCCallSafety safety
Specify whether the call is idempotent or cachable.
Definition: GRPCCall.h:121
void start()
Starts the call.
void finish()
Finish the RPC request and half-close the call.
GRPCCallOptions * callOptions
Get a copy of the original call options.
Definition: GRPCCall.h:188
instancetype NS_UNAVAILABLE()
NSString * path
The path to the RPC call.
Definition: GRPCCall.h:116
instancetype NS_UNAVAILABLE()
HTTP request parameters.
Definition: GRPCCall.h:102
void cancel()
Cancel the request of this call at best effort.
An object can implement this protocol to receive responses from server from a call.
Definition: GRPCCall.h:50