2016-10-04 00:09:13 +00:00
|
|
|
use handler::{Handler, ErrorHandler};
|
2017-03-28 07:12:59 +00:00
|
|
|
use http::{Method, MediaType};
|
2016-04-03 10:36:30 +00:00
|
|
|
|
|
|
|
pub struct StaticRouteInfo {
|
|
|
|
pub method: Method,
|
|
|
|
pub path: &'static str,
|
2017-03-28 07:12:59 +00:00
|
|
|
pub format: Option<MediaType>,
|
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
|
|
|
}
|