web\Response getHttpRange()

getHttpRange() protected method Determines the HTTP range given in the request. protected array|boolean getHttpRange ( $fileSize )$fileSize integer The size of the file that will be used to validate the requested HTTP range. return array|boolean The range (begin, end), or false if the range request is invalid.

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 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 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 clear()

clear() public method Clears the headers, cookies, content, status code of the response. public void clear ( )

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