Function spa_server::re_export::web::head [−][src]
pub fn head() -> Route
Create route with HEAD
method guard.
use actix_web::{web, App, HttpResponse}; let app = App::new().service( web::resource("/{project_id}") .route(web::head().to(|| HttpResponse::Ok())) );
In the above example, one HEAD
route gets added:
- /{project_id}