$api->requestHeaders()
Returns all headers from the request if available
$api->requestHeaders(string $key = null, mixed $default = null): mixed
Parameters
Name | Type | Default |
---|---|---|
$key | string |
null |
$default | mixed |
null |
Return type
mixed
Parent class
Kirby\Cms\Api
inherited from Kirby\Api\Api