[go: up one dir, main page]

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

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

Create a new middleware from a pair of functions.