axum::routing::method_routing

Function head_service

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

Route HEAD requests to the given service.

See get_service for an example.