19 #ifndef GRPCPP_IMPL_CODEGEN_INTERCEPTOR_H 20 #define GRPCPP_IMPL_CODEGEN_INTERCEPTOR_H 30 class ChannelInterface;
33 namespace experimental {
101 virtual void Proceed() = 0;
107 virtual void Hijack() = 0;
117 virtual std::multimap<grpc::string, grpc::string>*
118 GetSendInitialMetadata() = 0;
121 virtual Status GetSendStatus() = 0;
125 virtual void ModifySendStatus(
const Status& status) = 0;
130 virtual std::multimap<grpc::string, grpc::string>*
131 GetSendTrailingMetadata() = 0;
137 virtual void* GetRecvMessage() = 0;
141 virtual std::multimap<grpc::string_ref, grpc::string_ref>*
142 GetRecvInitialMetadata() = 0;
146 virtual Status* GetRecvStatus() = 0;
150 virtual std::multimap<grpc::string_ref, grpc::string_ref>*
151 GetRecvTrailingMetadata() = 0;
158 virtual std::unique_ptr<ChannelInterface> GetInterceptedChannel() = 0;
175 #endif // GRPCPP_IMPL_CODEGEN_INTERCEPTOR_H
virtual ~InterceptorBatchMethods()
Definition: interceptor.h:88
Class that is passed as an argument to the Intercept method of the application's Interceptor interfac...
Definition: interceptor.h:86
The first two in this list are for clients and servers.
::google::protobuf::util::Status Status
Definition: config_protobuf.h:93
InterceptionHookPoints
An enumeration of different possible points at which the Intercept method of the Interceptor interfac...
Definition: interceptor.h:48
The following three are for hijacked clients only and can only be registered by the global intercepto...
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
Interface for an interceptor.
Definition: interceptor.h:163
virtual ~Interceptor()
Definition: interceptor.h:165
This is a special hook point available to both clients and servers when TryCancel() is performed...
Did it work? If it didn't, why?
Definition: status.h:31
A sequence of bytes.
Definition: byte_buffer.h:64
The following two are for all clients and servers.