Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Attribute Macro spring_macros::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"
}