Struct tokio_http2::router::builder::RouterBuilder [] [src]

pub struct RouterBuilder { /* fields omitted */ }

Builder for a router

Example usage:

Methods

impl RouterBuilder
[src]

Adds new Route for Router that is being built.

RouterBuilder::new().add(Route::get(r"/person/\d+").using(some_handler));

Trait Implementations

impl Debug for RouterBuilder
[src]

Formats the value using the given formatter.