|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| createResponse ( $statusCode=200, $reasonPhrase=null, array $headers=[], $body=null, $protocolVersion='1.1') | |
Factory for PSR-7 Response.
This factory contract can be reused in Message and Server Message factories.
Definition at line 15 of file ResponseFactory.php.
| Http\Message\ResponseFactory::createResponse | ( | $statusCode = 200, |
|
$reasonPhrase = null, |
|||
| array | $headers = [], |
||
$body = null, |
|||
$protocolVersion = '1.1' |
|||
| ) |
Creates a new PSR-7 response.
| int | $statusCode | |
| string | null | $reasonPhrase | |
| array | $headers | |
| resource | string | StreamInterface | null | $body | |
| string | $protocolVersion |
Implemented in Http\Message\MessageFactory\SlimMessageFactory, Http\Message\MessageFactory\DiactorosMessageFactory, and Http\Message\MessageFactory\GuzzleMessageFactory.