Attribute Macro head

Source
#[head]
Expand description

§Syntax

#[head("path"[, attributes])]

§Attributes

  • "path": Raw literal string with path for which to register handler.

§Examples

#[head("/")]
async fn example() -> impl IntoResponse {
    "hello world"
}