web\Request getUrl()

getUrl() public method Returns the currently requested relative URL. This refers to the portion of the URL that is after the $hostInfo part. It includes the $queryString part if any. public string getUrl ( )return string The currently requested relative URL. Note that the URI returned is URL-encoded. throws yii\base\InvalidConfigException if the URL cannot be determined due to unusual server configuration

web\Request getServerPort()

getServerPort() public method Returns the server port number. public integer|null getServerPort ( )return integer|null Server port number, null if not available

web\Request getServerName()

getServerName() public method Returns the server name. public string getServerName ( )return string Server name, null if not available

web\Request getSecurePort()

getSecurePort() public method Returns the port to use for secure requests. Defaults to 443, or the port specified by the server if the current request is secure. See also setSecurePort(). public integer getSecurePort ( )return integer Port number for secure requests.

web\Request getScriptUrl()

getScriptUrl() public method Returns the relative URL of the entry script. The implementation of this method referenced Zend_Controller_Request_Http in Zend Framework. public string getScriptUrl ( )return string The relative URL of the entry script. throws yii\base\InvalidConfigException if unable to determine the entry script URL

web\Request getScriptFile()

getScriptFile() public method Returns the entry script file path. The default implementation will simply return $_SERVER['SCRIPT_FILENAME']. public string getScriptFile ( )return string The entry script file path throws yii\base\InvalidConfigException

web\Request getReferrer()

getReferrer() public method Returns the URL referrer. public string|null getReferrer ( )return string|null URL referrer, null if not available

web\Request getRawBody()

getRawBody() public method Returns the raw HTTP request body. public string getRawBody ( )return string The request body

web\Request getQueryString()

getQueryString() public method Returns part of the request URL that is after the question mark. public string getQueryString ( )return string Part of the request URL that is after the question mark

web\Request getQueryParams()

getQueryParams() public method Returns the request parameters given in the $queryString. This method will return the contents of $_GET if params where not explicitly set. See also setQueryParams(). public array getQueryParams ( )return array The request GET parameter values.