Function axum::routing::method_routing::options_service

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

Route OPTIONS requests to the given service.

See get_service for an example.