Skip to content

Kirby 4.2.0

$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