Function axum::routing::service_method_routing::head[][src]

pub fn head<S, B>(svc: S) -> MethodRouter<S, MethodNotAllowed<S::Error>, B> where
    S: Service<Request<B>> + Clone
Expand description

Route HEAD requests to the given service.

See get for an example.