Class CodeIgniter\HTTP\IncomingRequest

extends Request

Class IncomingRequest

Represents an incoming, server-side HTTP request.

Per the HTTP specification, this interface includes properties for each of the following:

  • Protocol version
  • HTTP method
  • URI
  • Headers
  • Message body

Additionally, it encapsulates all data as it has arrived to the application from the CGI and/or PHP environment, including:

  • The values represented in $_SERVER.
  • Any cookies provided (generally via $_COOKIE)
  • Query string arguments (generally via $_GET, or as parsed via parse_str())
  • Upload files, if any (as represented by $_FILES)
  • Deserialized body binds (generally from $_POST)
Methods
Methods inherited from CodeIgniter\HTTP\Request
isValidIP(), getMethod(), setMethod(), withMethod(), getUri()
Methods inherited from CodeIgniter\HTTP\OutgoingRequest
withUri()
Methods inherited from CodeIgniter\HTTP\Message
getBody(), getHeaders(), getHeader(), hasHeader(), getHeaderLine(), getProtocolVersion()
Methods used from CodeIgniter\HTTP\MessageTrait
setBody(), appendBody(), populateHeaders(), headers(), header(), setHeader(), removeHeader(), appendHeader(), prependHeader(), getHeaderName(), setProtocolVersion()
Methods used from CodeIgniter\HTTP\RequestTrait
getIPAddress(), getServer(), getEnv(), setGlobal(), fetchGlobal(), populateGlobals()
Properties
Properties inherited from CodeIgniter\HTTP\Request
$proxyIPs
Properties inherited from CodeIgniter\HTTP\OutgoingRequest
$method,
Properties inherited from CodeIgniter\HTTP\Message
$protocolVersion, $validProtocolVersions, $body
Properties used from CodeIgniter\HTTP\MessageTrait
$headers, $headerMap
Properties used from CodeIgniter\HTTP\RequestTrait
$ipAddress, $globals