Zend Framework  3.0
Public Member Functions | List of all members
Request Class Reference

HTTP Request encapsulation. More...

Public Member Functions

 __construct ($uri=null, $method=null, $body= 'php://temp', array $headers=[])
 
 getHeaders ()
 {}
 
 getHeader ($header)
 {}
 

Detailed Description

HTTP Request encapsulation.

Requests are considered immutable; all methods that might change state are implemented such that they retain the internal state of the current message and return a new instance that contains the changed state.

Constructor & Destructor Documentation

__construct (   $uri = null,
  $method = null,
  $body = 'php://temp',
array  $headers = [] 
)
Parameters
null | string$uriURI for the request, if any.
null | string$methodHTTP method for the request, if any.
string | resource | StreamInterface$bodyMessage body, if any.
array$headersHeaders for the message, if any.
Exceptions
\InvalidArgumentExceptionfor any invalid value.

Member Function Documentation

getHeader (   $header)

{}

getHeaders ( )

{}