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
#![cfg_attr(feature = "cargo-clippy", warn(clippy, clippy_pedantic))]
#![cfg_attr(feature = "cargo-clippy", allow(missing_docs_in_private_items))]
extern crate hyper;
extern crate futures;
extern crate tokio_core;
extern crate tokio_io;
extern crate bytes;
extern crate regex;
extern crate num_cpus;
extern crate net2;
#[macro_use]
extern crate log;
mod context;
mod handler;
mod shio;
mod stack;
mod responder;
mod service;
pub mod middleware;
pub mod response;
pub mod util;
pub mod errors;
pub mod router;
pub mod ext;
pub use hyper::{header, Method, StatusCode};
pub use response::{BoxFutureResponse, Response};
pub use shio::Shio;
pub use context::Context;
pub use handler::{BoxHandler, Handler};
pub use responder::Responder;
pub use middleware::Middleware;
pub use stack::Stack;
pub mod prelude {
pub use super::{header, BoxFutureResponse, BoxHandler, Context, Handler, Method, Response,
Shio, StatusCode};
pub use futures::Future;
pub use ext::{BoxFuture, FutureExt};
}