Struct susanoo::Route
[−]
[src]
pub struct Route { /* fields omitted */ }
A route endpoint, which contains the instance of handler and middlewares
Methods
impl Route
[src]
fn new<S, H>(method: Method, pattern: S, handler: H) -> Self where
S: AsRef<str>,
H: Handler,
S: AsRef<str>,
H: Handler,