22 lines
588 B
Rust
22 lines
588 B
Rust
//! [`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};
|