GRPC Objective-C  1.73.0
Instance Methods | Class Methods | Properties
GRPCRequestOptions Class Reference

HTTP request parameters. More...

#import <GRPCCall.h>

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithHost:path:safety:
 Initialize with all properties. More...
 

Class Methods

(instancetype) + NS_UNAVAILABLE
 

Properties

NSString * host
 The host serving the RPC service. More...
 
NSString * path
 The path to the RPC call. More...
 
GRPCCallSafety safety
 Specify whether the call is idempotent or cachable. More...
 

Detailed Description

HTTP request parameters.

If Protobuf is used, these parameters are automatically generated by Protobuf. If directly using the GRPCCall2 class, users should specify these parameters manually.

Method Documentation

◆ initWithHost:path:safety:

- (instancetype) initWithHost: (NSString *)  host
path: (NSString *)  path
safety: (GRPCCallSafety)  NS_DESIGNATED_INITIALIZER 

Initialize with all properties.

◆ NS_UNAVAILABLE [1/2]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/2]

+ (instancetype) NS_UNAVAILABLE

Property Documentation

◆ host

- (NSString*) host
readatomiccopy

The host serving the RPC service.

◆ path

- (NSString*) path
readatomiccopy

The path to the RPC call.

◆ safety

- (GRPCCallSafety) safety
readatomicassign

Specify whether the call is idempotent or cachable.

gRPC may select different HTTP verbs for the call based on this information. The default verb used by gRPC is POST.


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