ResponseTrait::status()

int status() Get the status code for the response. Return Value int

ResponseTrait::header()

$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

ResponseTrait::cookie()

$this cookie(Cookie|mixed $cookie) Add a cookie to the response. Parameters Cookie|mixed $cookie Return Value $this

ResponseTrait::content()

string content() Get the content of the response. Return Value string

ResponseTrait

ResponseTrait trait ResponseTrait (View source) Properties Exception|null $exception The exception that triggered the error response (if applicable).

ResponsePreparerInterface::readyForResponses()

bool readyForResponses() Determine if provider is ready to return responses. Return Value bool

ResponsePreparerInterface::prepareResponse()

Response prepareResponse(mixed $value) Prepare the given value as a Response object. Parameters mixed $value Return Value Response

ResponsePreparerInterface

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.

ResponseFactory::__construct()

void __construct(Factory $view, Redirector $redirector) Create a new response factory instance. Parameters Factory $view Redirector $redirector Return Value void

ResponseFactory::__callStatic()

static mixed __callStatic(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException