GRPC Objective-C  1.25.0
Instance Methods | Properties
GRPCUnaryResponseHandler Class Reference

A convenience class of objects that act as response handlers of calls. More...

#import <ProtoRPC.h>

Instance Methods

(nullable instancetype) - initWithResponseHandler:responseDispatchQueue:
 Creates a responsehandler object with a unary call handler. More...
 
- Instance Methods inherited from <GRPCProtoResponseHandler>
(void) - didReceiveInitialMetadata:
 Issued when initial metadata is received from the server. More...
 
(void) - didReceiveProtoMessage:
 Issued when a message is received from the server. More...
 
(void) - didCloseWithTrailingMetadata:error:
 Issued when a call finished. More...
 
(void) - didWriteMessage
 Issued when flow control is enabled for the call and a message (written with writeMessage: method of GRPCStreamingProtoCall or the initializer of GRPCUnaryProtoCall) is passed to gRPC core with SEND_MESSAGE operation. More...
 

Properties

NSDictionary * responseHeaders
 Response headers received during the call. More...
 
NSDictionary * responseTrailers
 Response trailers received during the call. More...
 
- Properties inherited from <GRPCProtoResponseHandler>
dispatch_queue_t dispatchQueue
 All the responses must be issued to a user-provided dispatch queue. More...
 

Detailed Description

A convenience class of objects that act as response handlers of calls.

Issues response to a single handler when the response is completed.

Method Documentation

◆ initWithResponseHandler:responseDispatchQueue:()

- (nullable instancetype) initWithResponseHandler: (void(^)(GPBMessage *, NSError *))  handler
responseDispatchQueue: (nullable dispatch_queue_t)  dispatchQueue 

Creates a responsehandler object with a unary call handler.

responseHandler: The unary handler to be called when the call is completed. responseDispatchQueue: the dispatch queue on which the response handler should be issued. If it's nil, the handler will use the main queue.

Property Documentation

◆ responseHeaders

- (NSDictionary*) responseHeaders
readatomicassign

Response headers received during the call.

◆ responseTrailers

- (NSDictionary*) responseTrailers
readatomicassign

Response trailers received during the call.


The documentation for this class was generated from the following file: