Function viz::on

source · []
pub fn on<H, O>(method: Method, handler: H) -> Route where
    H: Handler<Request<Body>, Output = Result<O, Error>> + Clone,
    O: 'static + IntoResponse + Send + Sync
Expand description

Appends a route, with a HTTP verb and handler.