rustio_admin/middleware/mod.rs
1//! Built-in middleware. Each piece is an async function with the
2//! signature `async fn(Request, Next) -> Result<Response>`. Drop any of
3//! them into `Router::middleware(...)` in whatever order you want.
4
5mod compression;
6mod correlation_id;
7mod csrf;
8mod logger;
9mod rate_limit;
10mod security_headers;
11
12pub use compression::gzip;
13pub use correlation_id::{correlation_id, CorrelationId, CORRELATION_ID_HEADER};
14pub use csrf::{csrf_protect, CsrfGuard, CSRF_HEADER};
15pub use logger::logger;
16pub use rate_limit::{rate_limit, RateLimiter};
17pub use security_headers::security_headers;