tower_http/services/
mod.rs

1//! [`Service`]s that return responses without wrapping other [`Service`]s.
2//!
3//! These kinds of services are also referred to as "leaf services" since they sit at the leaves of
4//! a [tree] of services.
5//!
6//! [`Service`]: https://docs.rs/tower/latest/tower/trait.Service.html
7//! [tree]: https://en.wikipedia.org/wiki/Tree_(data_structure)
8
9#[cfg(feature = "redirect")]
10pub mod redirect;
11
12#[cfg(feature = "redirect")]
13#[doc(inline)]
14pub use self::redirect::Redirect;
15
16#[cfg(feature = "fs")]
17pub mod fs;
18
19#[cfg(feature = "fs")]
20#[doc(inline)]
21pub use self::fs::{ServeDir, ServeFile};