Function viz_router::only [−][src]
pub fn only<H, A, const S: usize>(methods: [Method; S], h: H) -> Route where
A: Extract,
A::Error: Into<Response>,
H: Handler<A>,
H::Output: Into<Response>,
H::Future: Future<Output = H::Output> + Send + 'static,
Endpoint<H, A>: for<'m> Middleware<'m, Context, Output = Result>,
Expand description
Appends a route, only handle HTTP verbs