pub fn head<St: State, U: 'static>() -> Route<St, U>Expand description
Create route with HEAD method guard.
use ntex::web;
let app = web::App::default().service(
web::resource("/{project_id}")
.route(web::head().to(async || { web::HttpResponse::Ok() }))
);In the above example, one HEAD route gets added:
/{project_id}