Skip to content

Kirby 4.5.0

$api->requestHeaders()

Returns all headers from the request if available

$api->requestHeaders(?string $key = null, mixed $default = null): mixed|null

Parameters

Name Type Default
$key string|null null
$default mixed null

Return type

mixed|null

Parent class

Kirby\Cms\Api inherited from Kirby\Api\Api