#include <userver/ugrpc/server/middlewares/base.hpp>
Base class for server gRPC middleware.
Public Member Functions | |
MiddlewareBase (const MiddlewareBase &)=delete | |
MiddlewareBase & | operator= (const MiddlewareBase &)=delete |
MiddlewareBase & | operator= (MiddlewareBase &&)=delete |
virtual void | Handle (MiddlewareCallContext &context) const =0 |
Handles the gRPC request. | |
virtual void | CallRequestHook (const MiddlewareCallContext &context, google::protobuf::Message &request) |
Request hook. The function is invoked on each request. | |
virtual void | CallResponseHook (const MiddlewareCallContext &context, google::protobuf::Message &response) |
Response hook. The function is invoked on each response. | |
|
pure virtual |
Handles the gRPC request.