tower_http/services/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! [`Service`]s that return responses without wrapping other [`Service`]s.
//!
//! These kinds of services are also referred to as "leaf services" since they sit at the leaves of
//! a [tree] of services.
//!
//! [`Service`]: https://docs.rs/tower/latest/tower/trait.Service.html
//! [tree]: https://en.wikipedia.org/wiki/Tree_(data_structure)

#[cfg(feature = "redirect")]
pub mod redirect;

#[cfg(feature = "redirect")]
#[doc(inline)]
pub use self::redirect::Redirect;

#[cfg(feature = "fs")]
pub mod fs;

#[cfg(feature = "fs")]
#[doc(inline)]
pub use self::fs::{ServeDir, ServeFile};