Zend Framework
3.0
|
HTTP Request encapsulation. More...
Public Member Functions | |
__construct ($uri=null, $method=null, $body= 'php://temp', array $headers=[]) | |
getHeaders () | |
{} | |
getHeader ($header) | |
{} | |
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.
__construct | ( | $uri = null , |
|
$method = null , |
|||
$body = 'php://temp' , |
|||
array | $headers = [] |
||
) |
null | string | $uri | URI for the request, if any. |
null | string | $method | HTTP method for the request, if any. |
string | resource | StreamInterface | $body | Message body, if any. |
array | $headers | Headers for the message, if any. |
\InvalidArgumentException | for any invalid value. |
getHeader | ( | $header | ) |
{}
getHeaders | ( | ) |
{}