Skip to main content

post

Attribute Macro post 

Source
#[post]
Expand description

Creates a route handler with a POST method guard.

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

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

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