pub fn Head() -> impl GuardExpand description
Creates a guard that matches the HEAD request method.
ยงExamples
The route in this example will only respond to HEAD requests.
use actix_web::{guard, web, HttpResponse};
web::route()
.guard(guard::Head())
.to(|| HttpResponse::Ok());