[][src]Attribute Macro actix_web_cute_codegen::handler

#[handler]

Creates route handler without attached method guard.

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

Attributes:

  • "path" - Raw literal string with path for which to register handler. Mandatory.
  • async - Attribute to indicate that registered function is asynchronous.
  • guard="function_name" - Registers function as guard using actix_web::guard::fn_guard