pub fn options<H, T, B>(handler: H) -> MethodRouter<B, Infallible>where
    H: Handler<T, B>,
    B: Send + 'static,
    T: 'static,
Expand description

Route OPTIONS requests to the given handler.

See get for an example.