Struct tokio_http2::router::builder::RouterBuilder
[−]
[src]
pub struct RouterBuilder { /* fields omitted */ }
Builder for a router
Example usage:
Methods
impl RouterBuilder
[src]
fn new() -> RouterBuilder
fn add(self, route: Route) -> RouterBuilder
Adds new Route
for Router
that is being built.
RouterBuilder::new().add(Route::get(r"/person/\d+").using(some_handler));