pub type Middleware = Arc<dyn Fn(Request<Body>, HandlerFunc) -> BoxResponseFuture + Send + Sync>;Expand description
Middleware: (req, next) -> Response.
Aliased Typeยง
pub struct Middleware { /* private fields */ }pub type Middleware = Arc<dyn Fn(Request<Body>, HandlerFunc) -> BoxResponseFuture + Send + Sync>;Middleware: (req, next) -> Response.
pub struct Middleware { /* private fields */ }