Skip to content

Kirby 4.4.1

$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
$key * string
$value string|false|null null
$lazy bool false If true, an existing header value is not overridden

Return type

string|Kirby\Cms\Responder

This method modifies the existing $responder object it is applied to and returns it again.

Parent class

Kirby\Cms\Responder