Skip to content

Kirby 3.8.4

new Response()

Creates a new response object

new Response(array|string $body = '', string $type = null, int $code = null, array $headers = null, string $charset = null)

Parameters

Name Type Default
$body array|string ''
$type string null
$code int null
$headers array null
$charset string null

Parent class

Kirby\Http\Response