web\Request getIsOptions()

getIsOptions() public method Returns whether this is an OPTIONS request. public boolean getIsOptions ( )return boolean Whether this is a OPTIONS request.

web\Request getIsGet()

getIsGet() public method Returns whether this is a GET request. public boolean getIsGet ( )return boolean Whether this is a GET request.

web\Request getIsHead()

getIsHead() public method Returns whether this is a HEAD request. public boolean getIsHead ( )return boolean Whether this is a HEAD request.

web\Request getIsFlash()

getIsFlash() public method Returns whether this is an Adobe Flash or Flex request. public boolean getIsFlash ( )return boolean Whether this is an Adobe Flash or Adobe Flex request.

web\Request getIsAjax()

getIsAjax() public method Returns whether this is an AJAX (XMLHttpRequest) request. Note that jQuery doesn't set the header in case of cross domain requests: https://stackoverflow.com/questions/8163703/cross-domain-ajax-doesnt-send-x-requested-with-header public boolean getIsAjax ( )return boolean Whether this is an AJAX (XMLHttpRequest) request.

web\Request getIsDelete()

getIsDelete() public method Returns whether this is a DELETE request. public boolean getIsDelete ( )return boolean Whether this is a DELETE request.

web\Request getHostName()

getHostName() public method (available since version 2.0.10) Returns the host part of the current request URL. Value is calculated from current hostInfo property. See also getHostInfo(). public string|null getHostName ( )return string|null Hostname part of the request URL (e.g. www.yiiframework.com)

web\Request getHostInfo()

getHostInfo() public method Returns the schema and host part of the current request URL. The returned URL does not have an ending slash. By default this is determined based on the user request information. You may explicitly specify it by setting the hostInfo property. See also setHostInfo(). public string|null getHostInfo ( )return string|null Schema and hostname part (with port number if needed) of the request URL (e.g. http://www.yiiframework.com), null if can't be obtained from $_S

web\Request getCsrfTokenFromHeader()

getCsrfTokenFromHeader() public method public string getCsrfTokenFromHeader ( )return string The CSRF token sent via CSRF_HEADER by browser. Null is returned if no such header is sent.

web\Request getHeaders()

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