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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#![cfg_attr(feature = "cargo-clippy", warn(clippy, clippy_pedantic))]
#![cfg_attr(feature = "cargo-clippy", allow(missing_docs_in_private_items, stutter))]
#![cfg_attr(feature = "nightly", feature(specialization))]
extern crate futures;
extern crate http as http_types;
extern crate hyper;
#[macro_use]
extern crate log;
extern crate net2;
extern crate num_cpus;
extern crate regex;
extern crate tokio_core;
extern crate unsafe_any;
pub mod state;
pub mod context;
mod handler;
mod shio;
mod service;
pub mod ext;
pub mod response;
pub mod request;
pub mod errors;
pub mod router;
pub mod util;
pub mod data;
pub mod http;
pub use response::Response;
pub use request::Request;
pub use shio::Shio;
pub use context::Context;
pub use state::State;
pub use handler::Handler;
pub use data::Data;
pub use errors::Error;
pub mod prelude {
pub use {Context, Request, Response, Shio, http};
pub use router::Parameters;
pub use ext::{BoxFuture, FutureExt};
pub use http::{Method, StatusCode};
pub use futures::{Future, Stream, IntoFuture};
}