rocket 0.2.9

Web framework for nightly with a focus on ease-of-use, expressibility, and speed.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use handler::{Handler, ErrorHandler};
use http::{Method, ContentType};

pub struct StaticRouteInfo {
    pub method: Method,
    pub path: &'static str,
    pub format: Option<ContentType>,
    pub handler: Handler,
    pub rank: Option<isize>,
}

pub struct StaticCatchInfo {
    pub code: u16,
    pub handler: ErrorHandler,
}