Skip to main content

options

Attribute Macro options 

Source
#[options]
Expand description

Creates a route handler with a OPTIONS method guard.

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

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

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