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 | array orstring |
''
|
$type | string ornull |
null
|
$code | int ornull |
null
|
$headers | array ornull |
null
|
$charset | string ornull |
null
|