mirror of https://github.com/rwf2/Rocket.git
17 lines
353 B
Rust
17 lines
353 B
Rust
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<MediaType>,
|
|
pub handler: Handler,
|
|
pub rank: Option<isize>,
|
|
}
|
|
|
|
pub struct StaticCatchInfo {
|
|
pub code: u16,
|
|
pub handler: ErrorHandler,
|
|
}
|