[go: up one dir, main page]

[][src]Function chttp::middleware::create

pub fn create(
    request: impl Fn(Request<Body>) -> Request<Body> + Send + Sync + 'static,
    response: impl Fn(Response<Body>) -> Response<Body> + Send + Sync + 'static
) -> impl Middleware

Create a new middleware from a pair of functions.