GRPCHost.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #import <Foundation/Foundation.h>
20 
22 
23 #import "GRPCChannelFactory.h"
24 
26 
27 NS_ASSUME_NONNULL_BEGIN
28 
29 @class GRPCCompletionQueue;
30 struct grpc_call;
32 
33 @interface GRPCHost : NSObject
34 
35 + (void)resetAllHostSettings;
36 
37 @property(nonatomic, readonly) NSString *address;
38 @property(nonatomic, copy, nullable) NSString *userAgentPrefix;
39 @property(nonatomic, copy, nullable) NSString *userAgentSuffix;
41 @property(nonatomic) int keepaliveInterval;
42 @property(nonatomic) int keepaliveTimeout;
43 @property(nonatomic) id logContext;
44 @property(nonatomic) BOOL retryEnabled;
45 
46 @property(nonatomic) unsigned int minConnectTimeout;
47 @property(nonatomic) unsigned int initialConnectBackoff;
48 @property(nonatomic) unsigned int maxConnectBackoff;
49 
50 @property(nonatomic) id<GRPCChannelFactory> channelFactory;
51 
54 @property(nonatomic, copy, nullable) NSString *hostNameOverride;
55 
57 @property(nonatomic) NSUInteger responseSizeLimitOverride;
58 
59 - (nullable instancetype)init NS_UNAVAILABLE;
61 + (nullable instancetype)hostWithAddress:(NSString *)address;
62 - (nullable instancetype)initWithAddress:(NSString *)address NS_DESIGNATED_INITIALIZER;
63 - (BOOL)setTLSPEMRootCerts:(nullable NSString *)pemRootCerts
64  withPrivateKey:(nullable NSString *)pemPrivateKey
65  withCertChain:(nullable NSString *)pemCertChain
66  error:(NSError **)errorPtr;
67 
68 @property(atomic) GRPCTransportType transportType;
69 
70 + (GRPCCallOptions *)callOptionsForHost:(NSString *)host;
71 
72 @end
73 
74 NS_ASSUME_NONNULL_END
GRPCHost::keepaliveTimeout
int keepaliveTimeout
Definition: GRPCHost.h:42
init
const char * init
Definition: upb/upb/bindings/lua/main.c:49
GRPCHost::minConnectTimeout
unsigned int minConnectTimeout
Definition: GRPCHost.h:46
GRPCCallOptions
Definition: GRPCCallOptions.h:32
copy
static int copy(grpc_slice_buffer *input, grpc_slice_buffer *output)
Definition: message_compress.cc:145
grpc_compression_algorithm
grpc_compression_algorithm
Definition: compression_types.h:60
GRPCHost::initialConnectBackoff
unsigned int initialConnectBackoff
Definition: GRPCHost.h:47
GRPCHost::channelFactory
id< GRPCChannelFactory > channelFactory
Definition: GRPCHost.h:50
GRPCCompletionQueue
Definition: GRPCCompletionQueue.h:35
GRPCHost::retryEnabled
BOOL retryEnabled
Definition: GRPCHost.h:44
BOOL
int BOOL
Definition: undname.c:46
GRPCHost::transportType
GRPCTransportType transportType
Definition: GRPCHost.h:68
GRPCHost::maxConnectBackoff
unsigned int maxConnectBackoff
Definition: GRPCHost.h:48
-[GRPCHost NS_UNAVAILABLE]
nullable instancetype NS_UNAVAILABLE()
+[GRPCHost resetAllHostSettings]
void resetAllHostSettings()
GRPCCallOptions.h
GRPCHost
Definition: GRPCHost.h:33
GRPCHost::compressAlgorithm
grpc_compression_algorithm compressAlgorithm
Definition: GRPCHost.h:40
GRPCHost::responseSizeLimitOverride
NSUInteger responseSizeLimitOverride
Definition: GRPCHost.h:57
grpc_call
struct grpc_call grpc_call
Definition: grpc_types.h:70
GRPCHost::userAgentSuffix
NSString * userAgentSuffix
Definition: GRPCHost.h:39
GRPCHost::logContext
id logContext
Definition: GRPCHost.h:43
compression_types.h
GRPCHost::userAgentPrefix
NSString * userAgentPrefix
Definition: GRPCHost.h:38
GRPCHost::keepaliveInterval
int keepaliveInterval
Definition: GRPCHost.h:41
GRPCHost::hostNameOverride
NSString * hostNameOverride
Definition: GRPCHost.h:54
GRPCHost::address
NSString * address
Definition: GRPCHost.h:37
GRPCChannelFactory.h
grpc_channel_credentials
Definition: src/core/lib/security/credentials/credentials.h:96


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:48