GRPC C++  1.62.0
Public Member Functions | Friends
grpc::GenericCallbackServerContext Class Referencefinal

#include <async_generic_service.h>

Public Member Functions

const std::string & method () const
 
const std::string & host () const
 
- Public Member Functions inherited from grpc::CallbackServerContext
 CallbackServerContext ()
 Public constructors are for direct use only by mocking tests. More...
 
void AddInitialMetadata (const std::string &key, const std::string &value)
 Add the (key, value) pair to the initial metadata associated with a server call. More...
 
void AddTrailingMetadata (const std::string &key, const std::string &value)
 Add the (key, value) pair to the initial metadata associated with a server call. More...
 
std::shared_ptr< const grpc::AuthContextauth_context () const
 Return the authentication context for this server call. More...
 
grpc_callc_call ()
 Should be used for framework-level extensions only. More...
 
const struct census_contextcensus_context () const
 Get the census context associated with this server call. More...
 
const std::multimap< grpc::string_ref, grpc::string_ref > & client_metadata () const
 Return a collection of initial metadata key-value pairs sent from the client. More...
 
grpc_compression_algorithm compression_algorithm () const
 Return the compression algorithm the server call will request be used. More...
 
grpc_compression_level compression_level () const
 Return the compression algorithm to be used by the server call. More...
 
bool compression_level_set () const
 Return a bool indicating whether the compression level for this call has been set (either implicitly or through a previous call to set_compression_level. More...
 
ContextAllocatorcontext_allocator () const
 
std::chrono::system_clock::time_point deadline () const
 Return the deadline for the server call. More...
 
bool IsCancelled () const
 Return whether this RPC failed before the server could provide its status back to the client. More...
 
std::string peer () const
 Return the peer uri in a string. More...
 
gpr_timespec raw_deadline () const
 Return a gpr_timespec representation of the server call's deadline. More...
 
void set_compression_algorithm (grpc_compression_algorithm algorithm)
 Set algorithm to be the compression algorithm used for the server call. More...
 
void set_compression_level (grpc_compression_level level)
 Set level to be the compression level used for the server call. More...
 
void set_context_allocator (ContextAllocator *context_allocator)
 
void SetLoadReportingCosts (const std::vector< std::string > &cost_data)
 Set the serialized load reporting costs in cost_data for the call. More...
 
void TryCancel () const
 Cancel the Call from the server. More...
 
grpc::ServerUnaryReactorDefaultReactor ()
 Get a library-owned default unary reactor for use in minimal reaction cases. More...
 
RpcAllocatorStateGetRpcAllocatorState ()
 NOTE: This is an API for advanced users who need custom allocators. More...
 
- Public Member Functions inherited from grpc::ServerContextBase
virtual ~ServerContextBase ()
 
std::chrono::system_clock::time_point deadline () const
 Return the deadline for the server call. More...
 
gpr_timespec raw_deadline () const
 Return a gpr_timespec representation of the server call's deadline. More...
 
void AddInitialMetadata (const std::string &key, const std::string &value)
 Add the (key, value) pair to the initial metadata associated with a server call. More...
 
void AddTrailingMetadata (const std::string &key, const std::string &value)
 Add the (key, value) pair to the initial metadata associated with a server call. More...
 
bool IsCancelled () const
 Return whether this RPC failed before the server could provide its status back to the client. More...
 
void TryCancel () const
 Cancel the Call from the server. More...
 
const std::multimap< grpc::string_ref, grpc::string_ref > & client_metadata () const
 Return a collection of initial metadata key-value pairs sent from the client. More...
 
grpc_compression_level compression_level () const
 Return the compression algorithm to be used by the server call. More...
 
void set_compression_level (grpc_compression_level level)
 Set level to be the compression level used for the server call. More...
 
bool compression_level_set () const
 Return a bool indicating whether the compression level for this call has been set (either implicitly or through a previous call to set_compression_level. More...
 
grpc_compression_algorithm compression_algorithm () const
 Return the compression algorithm the server call will request be used. More...
 
void set_compression_algorithm (grpc_compression_algorithm algorithm)
 Set algorithm to be the compression algorithm used for the server call. More...
 
void SetLoadReportingCosts (const std::vector< std::string > &cost_data)
 Set the serialized load reporting costs in cost_data for the call. More...
 
std::shared_ptr< const grpc::AuthContextauth_context () const
 Return the authentication context for this server call. More...
 
std::string peer () const
 Return the peer uri in a string. More...
 
const struct census_contextcensus_context () const
 Get the census context associated with this server call. More...
 
grpc_callc_call ()
 Should be used for framework-level extensions only. More...
 
experimental::CallMetricRecorderExperimentalGetCallMetricRecorder ()
 Get the CallMetricRecorder object for the current RPC. More...
 
grpc::string_ref ExperimentalGetAuthority () const
 EXPERIMENTAL API Returns the call's authority. More...
 

Friends

class grpc::Server
 

Additional Inherited Members

- Protected Member Functions inherited from grpc::ServerContextBase
void AsyncNotifyWhenDone (void *tag)
 Async only. More...
 
RpcAllocatorStateGetRpcAllocatorState ()
 NOTE: This is an API for advanced users who need custom allocators. More...
 
grpc::ServerUnaryReactorDefaultReactor ()
 Get a library-owned default unary reactor for use in minimal reaction cases. More...
 
 ServerContextBase ()
 Constructors for use by derived classes. More...
 
 ServerContextBase (gpr_timespec deadline, grpc_metadata_array *arr)
 
void set_context_allocator (ContextAllocator *context_allocator)
 
ContextAllocatorcontext_allocator () const
 

Member Function Documentation

◆ host()

const std::string& grpc::GenericCallbackServerContext::host ( ) const
inline

◆ method()

const std::string& grpc::GenericCallbackServerContext::method ( ) const
inline

Friends And Related Function Documentation

◆ grpc::Server

friend class grpc::Server
friend

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