$response->header()
Getter for single headers
$response->header(string $key): string|null
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $keyrequired | string |
no default value | Name of the header |
Return types
stringornull
This method modifies the existing $response object it is applied to and returns it again.
Parent class
Kirby\Cms\Response
inherited from Kirby\Http\Response