pub fn compose<'a, I>(
middlewares: I,
final_handler: RequestHandler,
) -> RequestHandlerExpand description
Build the final handler by folding the middlewares in reverse. Each middleware and handler is consumed exactly once.
pub fn compose<'a, I>(
middlewares: I,
final_handler: RequestHandler,
) -> RequestHandlerBuild the final handler by folding the middlewares in reverse. Each middleware and handler is consumed exactly once.