Attribute Macro ntex_macros::web_get[][src]

#[web_get]

Creates route handler with GET method guard.

Syntax: #[get("path"[, attributes])]

Attributes:

  • "path" - Raw literal string with path for which to register handler. Mandatory.
  • guard = "function_name" - Registers function as guard using ntex::web::guard::fn_guard
  • error = "ErrorRenderer" - Register handler for different error renderer