Crate tonic_middleware

Source

Structs§

InterceptorFor
InterceptorFor wraps a service with a RequestInterceptor, enabling request-level interception before the request reaches the service logic.
MiddlewareFor
MiddlewareFor is a service wrapper that pairs a middleware with its target service.
MiddlewareLayer
MiddlewareLayer provides a way to wrap services with a specific middleware using the tower Layer trait
RequestInterceptorLayer
RequestInterceptorLayer provides a way to wrap services with a specific interceptor using the tower Layer trait

Traits§

Middleware
The Middleware trait defines a generic interface for middleware components in a grpc service chain. Implementors of this trait can modify, observe, or otherwise interact with requests and responses in the service pipeline
RequestInterceptor
The RequestInterceptor trait is designed to enable the interception and processing of incoming requests within your service pipeline. This trait is particularly useful for performing operations such as authentication, enriching requests with additional metadata, or rejecting requests based on certain criteria before they reach the service logic.
ServiceBound