#import <GRPCCall.h>
A GRPCCall2 object represents an RPC call.
Definition at line 130 of file GRPCCall.h.
◆ cancel
Cancel the request of this call at best effort. It attempts to notify the server that the RPC should be cancelled, and issue didCloseWithTrailingMetadata:error: callback with error code CANCELED if no other error code has already been issued.
◆ finish
Finish the RPC request and half-close the call. The server may still send messages and/or trailers to the client. The method must only be called once and after start is called.
◆ globalInterceptorFactory
◆ initWithRequestOptions:responseHandler:
Convenience initializer for a call that uses default call options (see GRPCCallOptions.m for the default options).
◆ initWithRequestOptions:responseHandler:callOptions:
Designated initializer for a call.
- Parameters
-
requestOptions | Protobuf generated parameters for the call. |
responseHandler | The object to which responses should be issued. |
callOptions | Options for the call. |
◆ NS_UNAVAILABLE [1/2]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
◆ NS_UNAVAILABLE [2/2]
- (instancetype) NS_UNAVAILABLE |
|
|
|
◆ receiveNextMessages:
- (void) receiveNextMessages: |
|
(NSUInteger) |
numberOfMessages |
|
Tell gRPC to receive the next N gRPC messages.
This method should only be used when flow control is enabled. When flow control is not enabled, this method is a no-op.
◆ registerGlobalInterceptor:
Register a global interceptor's factory in the current process. Only one interceptor can be registered in a process. If another one attempts to be registered, an exception will be raised.
- Parameters
-
[in] | interceptorFactory | The factory object that generates the global interceptor for each call. |
Provided by category GRPCCall2(Interceptor).
◆ start
Starts the call. This function must only be called once for each instance.
◆ writeData:
- (void) writeData: |
|
(id) |
data |
|
Send a message to the server. The data is subject to marshaller serialization and compression (marshaller is work in progress).
◆ callOptions
Get a copy of the original call options.
Definition at line 188 of file GRPCCall.h.
◆ requestOptions
Get a copy of the original request options.
Definition at line 191 of file GRPCCall.h.
The documentation for this class was generated from the following file: