int status() Get the status code for the response. Return Value int
$this header(string $key, array|string $values, bool $replace = true) Set a header on the Response. Parameters string $key array|string $values bool $replace Return Value $this
$this cookie(Cookie|mixed $cookie) Add a cookie to the response. Parameters Cookie|mixed $cookie Return Value $this
string content() Get the content of the response. Return Value string
ResponseTrait trait ResponseTrait (View source) Properties Exception|null $exception The exception that triggered the error response (if applicable).
bool readyForResponses() Determine if provider is ready to return responses. Return Value bool
Response prepareResponse(mixed $value) Prepare the given value as a Response object. Parameters mixed $value Return Value Response
ResponsePreparerInterface interface ResponsePreparerInterface (View source) Methods Response prepareResponse(mixed $value) Prepare the given value as a Response object. bool readyForResponses() Determine if provider is ready to return responses.
void __construct(Factory $view, Redirector $redirector) Create a new response factory instance. Parameters Factory $view Redirector $redirector Return Value void
static mixed __callStatic(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException
Page 237 of 996