relay_server/middlewares/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//! Middlewares for the HTTP server.
//!
//! This module exposes tower [layers](tower::Layer) and related utilities to configure the
//! axum/hyper HTTP server. Most of the middlewares should be registered as a layer on the
//! [`Router`](axum::Router).
//!
//! See the server startup in [`HttpServer`](crate::services::server::HttpServer) for where these
//! middlewares are registered.

mod cors;
mod decompression;
mod handle_panic;
mod metrics;
mod normalize_path;
mod sentry_tower;
mod trace;

mod body_timing;

pub use self::body_timing::*;
pub use self::cors::*;
pub use self::decompression::*;
pub use self::handle_panic::*;
pub use self::metrics::*;
pub use self::normalize_path::*;
pub use self::sentry_tower::*;
pub use self::trace::*;