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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
pub extern crate hyper;
pub extern crate futures;
extern crate futures_cpupool;
extern crate unsafe_any as uany;
extern crate ferrum_plugin as plugin;
extern crate num_cpus;
extern crate mime_guess;
pub extern crate mime;
pub extern crate url;
pub use request::Request;
pub use response::Response;
pub use middleware::{BeforeMiddleware, AfterMiddleware, AroundMiddleware, Handler, Chain};
pub use ferrum::*;
pub use typemap::TypeMap;
pub use hyper::header;
pub use hyper::header::Headers;
pub use hyper::header::Header;
pub use hyper::{Method, StatusCode, Uri};
pub use plugin::Pluggable as Plugin;
pub use error::Error;
pub use error::FerrumError;
pub mod error;
pub type FerrumResult<T> = Result<T, FerrumError>;
pub mod typemap {
pub use plugin::typemap::{TypeMap, Key};
pub use uany::UnsafeAny;
pub type TypeMapInner = UnsafeAny + Send + Sync;
}
pub mod middleware;
pub mod request;
pub mod response;
pub mod service;
mod ferrum;