HeaderVariable
annotation class HeaderVariable(val name: String = "", val nestedPath: Array<String> = [], val required: Boolean = true)
Marks a command field as a header variable in HTTP requests.
Header variables are extracted from HTTP headers and injected into the command. This enables passing context information like authentication tokens or request metadata.
Parameters
name
The name of the HTTP header. If empty, uses the field name.
nestedPath
Path to nested properties for complex objects.
required
Whether this header is mandatory for the request.