1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Experimental middleware.
//!
//! Analogous to the `middleware` module in Actix Web.

pub use crate::{
    catch_panic::CatchPanic,
    err_handler::ErrorHandlers,
    load_shed::LoadShed,
    middleware_from_fn::{from_fn, MiddlewareFn, Next},
    middleware_map_response::{map_response, MapResMiddleware},
    middleware_map_response_body::{map_response_body, MapResBodyMiddleware},
    normalize_path::NormalizePath,
    panic_reporter::PanicReporter,
    redirect_to_https::RedirectHttps,
    redirect_to_www::redirect_to_www,
};