web\Request setScriptFile()

setScriptFile() public method Sets the entry script file path. The entry script file path normally can be obtained from $_SERVER['SCRIPT_FILENAME']. If your server configuration does not return the correct value, you may configure this property to make it right. public void setScriptFile ( $value )$value string The entry script file path.

web\Request setRawBody()

setRawBody() public method Sets the raw HTTP request body, this method is mainly used by test scripts to simulate raw HTTP requests. public void setRawBody ( $rawBody )$rawBody string The request body

web\Request setPort()

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

web\Request setQueryParams()

setQueryParams() public method Sets the request $queryString parameters. See also: getQueryParam() getQueryParams() public void setQueryParams ( $values )$values array The request query parameters (name-value pairs)

web\Request setPathInfo()

setPathInfo() public method Sets the path info of the current request. This method is mainly provided for testing purpose. public void setPathInfo ( $value )$value string The path info of the current request

web\Request setHostInfo()

setHostInfo() public method Sets the schema and host part of the application URL. This setter is provided in case the schema and hostname cannot be determined on certain Web servers. public void setHostInfo ( $value )$value string|null The schema and host part of the application URL. The trailing slashes will be removed.

web\Request setBodyParams()

setBodyParams() public method Sets the request body parameters. See also: getBodyParam() getBodyParams() public void setBodyParams ( $values )$values array The request body parameters (name-value pairs)

web\Request setBaseUrl()

setBaseUrl() public method Sets the relative URL for the application. By default the URL is determined based on the entry script URL. This setter is provided in case you want to change this behavior. public void setBaseUrl ( $value )$value string The relative URL for the application

web\Request setAcceptableLanguages()

setAcceptableLanguages() public method public void setAcceptableLanguages ( $value )$value array The languages that are acceptable by the end user. They should be ordered by the preference level.

web\Request resolveRequestUri()

resolveRequestUri() protected method Resolves the request URI portion for the currently requested URL. This refers to the portion that is after the $hostInfo part. It includes the $queryString part if any. The implementation of this method referenced Zend_Controller_Request_Http in Zend Framework. protected string|boolean resolveRequestUri ( )return string|boolean The request URI portion for the currently requested URL. Note that the URI returned is URL-encoded. throws yii\base\Invali