Rocket/lib/src/codegen.rs

16 lines
329 B
Rust
Raw Normal View History

use handler::{Handler, ErrorHandler};
use http::{Method, ContentType};
pub struct StaticRouteInfo {
pub method: Method,
pub path: &'static str,
2016-09-04 11:06:28 +00:00
pub format: Option<ContentType>,
pub handler: Handler,
pub rank: Option<isize>,
}
pub struct StaticCatchInfo {
pub code: u16,
pub handler: ErrorHandler,
}