Zend Framework
3.0
|
HTTP response encapsulation. More...
Public Member Functions | |
__construct ($body= 'php://memory', $status=200, array $headers=[]) | |
getStatusCode () | |
{} | |
getReasonPhrase () | |
{} | |
withStatus ($code, $reasonPhrase= '') | |
{} | |
HTTP response encapsulation.
Responses 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 | ( | $body = 'php://memory' , |
|
$status = 200 , |
|||
array | $headers = [] |
||
) |
string | resource | StreamInterface | $body | Stream identifier and/or actual stream resource |
int | $status | Status code for the response, if any. |
array | $headers | Headers for the response, if any. |
InvalidArgumentException | on any invalid element. |
getReasonPhrase | ( | ) |
{}
getStatusCode | ( | ) |
{}
withStatus | ( | $code, | |
$reasonPhrase = '' |
|||
) |
{}