pub fn options_service<T, S, B>(
    svc: T
) -> MethodRouter<S, B, <T as Service<Request<B>>>::Error>
where T: Service<Request<B>> + Clone + Send + 'static, <T as Service<Request<B>>>::Response: IntoResponse + 'static, <T as Service<Request<B>>>::Future: Send + 'static, B: Body + Send + 'static, S: Clone,
Expand description

Route OPTIONS requests to the given service.

See get_service for an example.