Attribute Macro put

Source
#[put]
Expand description

§Syntax

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

§Attributes

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

§Examples

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