2016-10-04 00:09:13 +00:00
|
|
|
use handler::{Handler, ErrorHandler};
|
|
|
|
use http::{Method, ContentType};
|
2016-04-03 10:36:30 +00:00
|
|
|
|
|
|
|
pub struct StaticRouteInfo {
|
|
|
|
pub method: Method,
|
|
|
|
pub path: &'static str,
|
2016-09-04 11:06:28 +00:00
|
|
|
pub format: Option<ContentType>,
|
2016-08-23 03:34:22 +00:00
|
|
|
pub handler: Handler,
|
2016-08-27 12:10:29 +00:00
|
|
|
pub rank: Option<isize>,
|
2016-04-03 10:36:30 +00:00
|
|
|
}
|
|
|
|
|
2016-04-06 10:26:43 +00:00
|
|
|
pub struct StaticCatchInfo {
|
|
|
|
pub code: u16,
|
2016-09-30 22:20:11 +00:00
|
|
|
pub handler: ErrorHandler,
|
2016-04-06 10:26:43 +00:00
|
|
|
}
|