Skip to content

Kirby 6.0.0

$responder->headers()

Setter and getter for all headers

$responder->headers(array|null $headers = null): array|Responder

Parameters

Name Type Default
$headers array<string, string>ornull null

Return types

array<string, string>orKirby\Cms\Responder

This method does not modify the existing $responder object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Responder