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
28
29
#[cfg(feature = "http")]
pub use http;

#[cfg(feature = "application")]
pub mod application;
#[cfg(feature = "application")]
pub use application::{
    dispatch, get, handler, post, Application, ClientError, Context, FromContext,
};

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

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

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

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

#[cfg(feature = "uploads")]
mod multipart;

pub mod types {
    pub const HTML: &str = "text/html";
    pub const JSON: &str = "application/json";
}