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 |
null |
| $code | int|null |
null |
| $headers | array|null |
null |
| $charset | string|null |
null |
Parent class
Kirby\Cms\Response inherited from Kirby\Http\Response