Skip to content

Kirby 4.4.1

$request->header()

Returns a header by key if it exists

$request->header(string $key, $fallback = null)

Parameters

Name Type Default
$key * string
$fallback mixed null

Parent class

Kirby\Http\Request