web\Response getIsClientError()

getIsClientError() public method public boolean getIsClientError ( )return boolean Whether this response indicates a client error

web\Response getDispositionHeaderValue()

getDispositionHeaderValue() protected method (available since version 2.0.10) Returns Content-Disposition header value that is safe to use with both old and new browsers Fallback name: Causes issues if contains non-ASCII characters with codes less than 32 or more than 126. Causes issues if contains urlencoded characters (starting with %) or % character. Some browsers interpret filename="X" as urlencoded name, some don't. Causes issues if contains path separator characters such as \ or /. Si

web\Response getCookies()

getCookies() public method Returns the cookie collection. Through the returned cookie collection, you add or remove cookies as follows, // add a cookie $response->cookies->add(new Cookie([ 'name' => $name, 'value' => $value, ]); // remove a cookie $response->cookies->remove('name'); // alternatively unset($response->cookies['name']); public yii\web\CookieCollection getCookies ( )return yii\web\CookieCollection The cookie collection.

web\Response EVENT_BEFORE_SEND

EVENT_BEFORE_SEND event of type \yii\web\ResponseEvent An event that is triggered at the beginning of send().

web\Response getHeaders()

getHeaders() public method Returns the header collection. The header collection contains the currently registered HTTP headers. public yii\web\HeaderCollection getHeaders ( )return yii\web\HeaderCollection The header collection

web\Response EVENT_AFTER_SEND

EVENT_AFTER_SEND event of type \yii\web\ResponseEvent An event that is triggered at the end of send().

web\Response EVENT_AFTER_PREPARE

EVENT_AFTER_PREPARE event of type \yii\web\ResponseEvent An event that is triggered right after prepare() is called in send(). You may respond to this event to filter the response content before it is sent to the client.

web\Response defaultFormatters()

defaultFormatters() protected method protected array defaultFormatters ( )return array The formatters that are supported by default

web\Response $version

$version public property The version of the HTTP protocol to use. If not set, it will be determined via $_SERVER['SERVER_PROTOCOL'], or '1.1' if that is not available. public string $version = null

web\Response $stream

$stream public property The stream to be sent. This can be a stream handle or an array of stream handle, the begin position and the end position. Note that when this property is set, the $data and $content properties will be ignored by send(). public resource|array $stream = null