Skip to main content

head

Attribute Macro head 

Source
#[head]
Expand description

Creates a route handler with a HEAD method guard.

Re-exported as ntex::web::head.

Syntax: #[head("path"[, guard = "fn_name"]*[, state = Type])]

Works the same way and takes the same arguments as [web_get].