Skip to content

Kirby 5.0.0

new Response()

Creates a new response object

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

Parameters

Name Type Default
$body arrayorstring ''
$type stringornull null
$code intornull null
$headers arrayornull null
$charset stringornull null

Parent class

Kirby\Http\Response