Response
class Response extends Response (View source)
Traits
Properties
mixed | $original | The original content of the response. | |
Exception | $exception | The exception that triggered the error response (if applicable). |
Methods
$this
header(
string $key,
string $value,
bool $replace = true)
Set a header on the Response.
from ResponseTrait
$this
setContent(
mixed $content)
Set the content on the response.
mixed
getOriginalContent()
Get the original response content.
$this
Details
in ResponseTrait at line line 35
$this
header(
string $key,
string $value,
bool $replace = true)
Set a header on the Response.
in ResponseTrait at line line 48
$this
withHeaders(
array $headers)
Add an array of headers to the response.
in ResponseTrait at line line 74
$this
withCookie(
Cookie|mixed $cookie)
Add a cookie to the response.