web\Response $cookies

$cookies public read-only property The cookie collection. public yii\web\CookieCollection getCookies ( )

web\Response $content

$content public property The response content. When $data is not null, it will be converted into $content according to $format when the response is being sent out. See also $data. public string $content = null

web\Response $charset

$charset public property The charset of the text response. If not set, it will use the value of yii\web\Application::$charset. public string $charset = null

web\Response $acceptParams

$acceptParams public property The parameters (e.g. ['q' => 1, 'version' => '1.0']) associated with the chosen MIME type. This is a list of name-value pairs associated with $acceptMimeType from the ACCEPT HTTP header. This property is mainly set by yii\filters\ContentNegotiator. public array $acceptParams = []

web\Response $acceptMimeType

$acceptMimeType public property The MIME type (e.g. application/json) from the request ACCEPT header chosen for this response. This property is mainly set by yii\filters\ContentNegotiator. public string $acceptMimeType = null

web\RequestParserInterface parse()

parse() public abstract method Parses a HTTP request body. public abstract array parse ( $rawBody, $contentType )$rawBody string The raw HTTP request body. $contentType string The content type specified for the request body. return array Parameters parsed from the request body

web\Request validateCsrfToken()

validateCsrfToken() public method Performs the CSRF validation. This method will validate the user-provided CSRF token by comparing it with the one stored in cookie or session. This method is mainly called in yii\web\Controller::beforeAction(). Note that the method will NOT perform CSRF validation if $enableCsrfValidation is false or the HTTP method is among GET, HEAD or OPTIONS. public boolean validateCsrfToken ( $token = null )$token string The user-provided CSRF token to be validated.

web\Request setUrl()

setUrl() public method Sets the currently requested relative URL. The URI must refer to the portion that is after $hostInfo. Note that the URI should be URL-encoded. public void setUrl ( $value )$value string The request URI to be set

web\Request setSecurePort()

setSecurePort() public method Sets the port to use for secure requests. This setter is provided in case a custom port is necessary for certain server configurations. public void setSecurePort ( $value )$value integer Port number.

web\Request setScriptUrl()

setScriptUrl() public method Sets the relative URL for the application entry script. This setter is provided in case the entry script URL cannot be determined on certain Web servers. public void setScriptUrl ( $value )$value string The relative URL for the application entry script.