Function product_os_router::options

source ยท
pub fn options<H, T, S>(handler: H) -> MethodRouter<S>
where H: Handler<T, S>, T: 'static, S: Clone + Send + Sync + 'static,
Expand description

Route OPTIONS requests to the given handler.

See get for an example.