head_api

Attribute Macro head_api 

Source
#[head_api]
Expand description

§Syntax

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

§Attributes

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

§Examples

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