Trait webframework::prelude::Router
source · pub trait Router: Clone {
fn handle(
&self,
req: Request,
path: Option<String>,
params: HashMap<String, String, RandomState>
) -> RouterResult;
fn router_map(&self) -> Option<HashMap<String, Route, RandomState>> { ... }
}
Required Methods
fn handle(
&self,
req: Request,
path: Option<String>,
params: HashMap<String, String, RandomState>
) -> RouterResult
Provided Methods
sourcefn router_map(&self) -> Option<HashMap<String, Route, RandomState>>
fn router_map(&self) -> Option<HashMap<String, Route, RandomState>>
Returns a tree of routes by filters