pub trait ServerMiddleware:
Send
+ Sync
+ 'static {
// Provided methods
fn pre<'a>(
&'a self,
_context: &'a RequestContext<'a>,
) -> BoxMiddlewareFuture<'a> { ... }
fn post<'a>(
&'a self,
_context: &'a RequestContext<'a>,
_outcome: ServerCallOutcome,
) -> BoxMiddlewareFuture<'a> { ... }
}Expand description
Observe inbound server requests before and after dispatch.