userver: ugrpc::client::MiddlewareBase Class Reference
Loading...
Searching...
No Matches
ugrpc::client::MiddlewareBase Class Referenceabstract

#include <userver/ugrpc/client/middlewares/base.hpp>

Detailed Description

Base class for server gRPC middleware.

Examples
samples/grpc_middleware_service/src/middlewares/client/middleware.hpp.

Definition at line 56 of file base.hpp.

Public Member Functions

 MiddlewareBase (const MiddlewareBase &)=delete
 
MiddlewareBaseoperator= (const MiddlewareBase &)=delete
 
MiddlewareBaseoperator= (MiddlewareBase &&)=delete
 
virtual void Handle (MiddlewareCallContext &context) const =0
 Handles the gRPC request.
 

Member Function Documentation

◆ Handle()

virtual void ugrpc::client::MiddlewareBase::Handle ( MiddlewareCallContext & context) const
pure virtual

Handles the gRPC request.

Note
You MUST call context.Next() inside eventually, otherwise it will assert

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