GRPC Objective-C  1.39.1
GRPCTransport+Private.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2019 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 
21 
22 NS_ASSUME_NONNULL_BEGIN
23 
28 
34 - (id<GRPCTransportFactory>)getTransportFactoryWithID:(GRPCTransportID)transportID;
35 
36 @end
37 
51 
52 - (instancetype)initWithTransportID:(GRPCTransportID)transportID
53  previousInterceptor:(id<GRPCResponseHandler>)previousInterceptor;
54 
59 - (void)shutDown;
60 
62 - (void)forwardPreviousInterceptorWithInitialMetadata:(nullable NSDictionary *)initialMetadata;
63 
65 - (void)forwardPreviousInterceptorWithData:(nullable id)data;
66 
68 - (void)forwardPreviousInterceptorCloseWithTrailingMetadata:
69  (nullable NSDictionary *)trailingMetadata
70  error:(nullable NSError *)error;
71 
74 
75 @end
76 
77 NS_ASSUME_NONNULL_END
API for interceptors implementation.
char *_Nonnull GRPCTransportID
The id of a transport implementation.
Definition: GRPCTypes.h:181
Private interfaces of the transport registry.
Definition: GRPCTransport+Private.h:27
GRPCTransportManager is a helper class to forward messages between the last interceptor and the trans...
Definition: GRPCTransport+Private.h:50
void shutDown()
Notify the manager that the transport has shut down and the manager should release references to its ...
void forwardPreviousInterceptorDidWriteData()
Forward write completion to the previous interceptor in the interceptor chain.
The GRPCInterceptorInterface defines the request events that can occur to an interceptor.
Definition: GRPCInterceptor.h:130
An object can implement this protocol to receive responses from server from a call.
Definition: GRPCCall.h:50
The factory to create a transport.
Definition: GRPCTransport.h:52