pub fn head() -> Route
Expand description
Creates a new route with HEAD
method guard.
ยงExamples
In this example, one HEAD /{project_id}
route is set up:
use actix_web::{web, App, HttpResponse};
let app = App::new().service(
web::resource("/{project_id}")
.route(web::head().to(|| HttpResponse::Ok()))
);