use handler::{Handler, ErrorHandler}; use http::{Method, MediaType}; pub struct StaticRouteInfo { pub name: &'static str, pub method: Method, pub path: &'static str, pub format: Option, pub handler: Handler, pub rank: Option, } pub struct StaticCatchInfo { pub code: u16, pub handler: ErrorHandler, }