Struct rust_easy_router::Router[][src]

pub struct Router { /* fields omitted */ }

Methods

impl Router
[src]

Creates a new Router.

The method to take in each Iron Request. Attempts to match its path with the Router's routes.

Function to add a new route to the Router.

Example:

router.get("/user/:id/:album/:image");

Auto Trait Implementations

impl Send for Router

impl Sync for Router