RAII helper for activating the gRPC context observer for the current thread.
Definition grpc_context_observer.hpp:10
Provides thread-local access to the current gRPC server context during request handling.
Definition grpc_context_observer.hpp:24
static const boost::optional< const GrpcContextObserver > & current() noexcept
Returns the current thread-local gRPC context observer, if one is active.
const GrpcServerContext & context() const noexcept
Returns the underlying gRPC server context.
std::vector< std::string > get_client_metadata_field_values(const std::string &key) const
Retrieves all values for a given metadata key from the client's initial metadata.