Reference

Guide

new Response()

Creates a new response object

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

Parameters

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

Source code

kirby/src/Http/Response.php#L67