2021-01-05 09:51:58 +00:00
|
|
|
//! Commonly used middleware.
|
2019-03-26 22:14:32 +00:00
|
|
|
|
2021-01-05 00:22:57 +00:00
|
|
|
mod compat;
|
2019-11-21 08:52:33 +00:00
|
|
|
mod condition;
|
2021-01-05 09:51:58 +00:00
|
|
|
mod default_headers;
|
|
|
|
mod err_handlers;
|
2019-03-10 23:35:38 +00:00
|
|
|
mod logger;
|
2021-01-05 09:51:58 +00:00
|
|
|
mod normalize;
|
2019-03-10 23:35:38 +00:00
|
|
|
|
2021-01-05 00:22:57 +00:00
|
|
|
pub use self::compat::Compat;
|
2019-11-21 08:52:33 +00:00
|
|
|
pub use self::condition::Condition;
|
2021-01-05 09:51:58 +00:00
|
|
|
pub use self::default_headers::DefaultHeaders;
|
|
|
|
pub use self::err_handlers::{ErrorHandlerResponse, ErrorHandlers};
|
2019-03-10 23:35:38 +00:00
|
|
|
pub use self::logger::Logger;
|
2021-01-05 09:51:58 +00:00
|
|
|
pub use self::normalize::{NormalizePath, TrailingSlash};
|
|
|
|
|
2021-06-19 19:21:13 +00:00
|
|
|
#[cfg(feature = "__compress")]
|
2021-01-05 09:51:58 +00:00
|
|
|
mod compress;
|
2021-06-19 19:21:13 +00:00
|
|
|
|
|
|
|
#[cfg(feature = "__compress")]
|
2021-01-05 09:51:58 +00:00
|
|
|
pub use self::compress::Compress;
|