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\Cms\Response
inherited from Kirby\Http\Response