$responder->header()
Setter and getter for a single header
$responder->header(string $key, string|false|null $value = null, bool $lazy = false): string|Kirby\Cms\Responder
Parameters
Name | Type | Default | Description |
---|---|---|---|
$keyrequired | string |
no default value | |
$value | string orfalse ornull |
null
|
|
$lazy | bool |
false
|
If true , an existing header value is not overridden |
Return types
string
orKirby\Cms\Responder
This method modifies the existing $
object it is applied to and returns it again.