//! Middlewares #[cfg(any(feature = "brotli", feature = "flate2-zlib", feature = "flate2-rust"))] mod compress; #[cfg(any(feature = "brotli", feature = "flate2-zlib", feature = "flate2-rust"))] mod decompress; #[cfg(any(feature = "brotli", feature = "flate2-zlib", feature = "flate2-rust"))] pub mod encoding { //! Middlewares for compressing/decompressing payloads. pub use super::compress::{BodyEncoding, Compress}; pub use super::decompress::Decompress; } pub mod cors; mod defaultheaders; pub mod errhandlers; mod logger; pub use self::defaultheaders::DefaultHeaders; pub use self::logger::Logger; #[cfg(feature = "secure-cookies")] pub mod identity;