#[head]
Registers a function as a HEAD route handler.
HEAD
use sunweb::{head, HTTPRequest, Response}; #[head("/ping")] fn ping(req: HTTPRequest) -> Response { Response::no_content() }