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
#![doc(test(attr(deny(warnings))))]

extern crate time;
extern crate serde;
extern crate serde_json;
pub extern crate hyper;
extern crate regex;
extern crate typemap;
extern crate plugin;
extern crate url;
extern crate mustache;
extern crate groupable;
extern crate modifier;

#[macro_use] extern crate log;
#[macro_use] extern crate lazy_static;

pub use nickel::{Nickel, Options};
pub use request::Request;
pub use response::Response;
pub use middleware::{Action, Continue, Halt, Middleware, ErrorHandler, MiddlewareResult};
pub use static_files_handler::StaticFilesHandler;
pub use mount::{Mount, Mountable};
pub use favicon_handler::FaviconHandler;
pub use default_error_handler::DefaultErrorHandler;
pub use body_parser::{BodyError, FormBody, JsonBody};
pub use query_string::QueryString;
pub use urlencoded::{Params, Query};
pub use router::{Router, Route, RouteResult, HttpRouter};
pub use nickel_error::NickelError;
pub use mimes::MediaType;
pub use responder::Responder;
pub use server::ListeningServer;
pub use template_cache::{ReloadPolicy, TemplateCache};

#[macro_use] pub mod macros;

pub mod router;
mod server;
mod nickel;
mod request;
mod response;
mod middleware;
mod responder;
mod favicon_handler;
mod static_files_handler;
mod mount;
mod body_parser;
mod query_string;
pub mod mimes;
mod urlencoded;
mod nickel_error;
mod default_error_handler;
pub mod extensions;
pub mod template_cache;

pub mod status {
    pub use hyper::status::StatusCode;
}