Skip to content

Kirby 5.0.4

$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\Http\Response