pub async fn invoke(
mw: MiddlewareFn,
req: Request<Body>,
next: Next,
) -> Response<Body>Expand description
Apply a middleware by name to an axum router-style handler chain.
The error from MiddlewareFn is converted to a 500 response if not handled.