pub trait RequestMiddleware: Send + Sync + 'static {
fn on_request(&self, request: Request<Body>) -> RequestMiddlewareAction;
}
Expand description
Allows to intercept request and handle it differently.
Required methods
fn on_request(&self, request: Request<Body>) -> RequestMiddlewareAction
fn on_request(&self, request: Request<Body>) -> RequestMiddlewareAction
Takes a request and decides how to proceed with it.