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

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

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

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

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

pub mod utils;

#[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";
}