Struct rust_easy_router::Router [−][src]
pub struct Router { /* fields omitted */ }
Methods
impl Router
[src]
impl Router
pub fn new() -> Router
[src]
pub fn new() -> Router
Creates a new Router.
pub fn handle(&self, _req: &mut Request) -> IronResult<Response>
[src]
pub fn handle(&self, _req: &mut Request) -> IronResult<Response>
The method to take in each Iron Request. Attempts to match its path with the Router's routes.
pub fn get(
&mut self,
path: &str,
f: fn(_: HashMap<String, String>, _: &mut Body) -> IronResult<Response>
)
[src]
pub fn get(
&mut self,
path: &str,
f: fn(_: HashMap<String, String>, _: &mut Body) -> IronResult<Response>
)