|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct () | |
| createRequest ( $method, $uri, array $headers=[], $body=null, $protocolVersion='1.1') | |
| createResponse ( $statusCode=200, $reasonPhrase=null, array $headers=[], $body=null, $protocolVersion='1.1') | |
Creates Diactoros messages.
Definition at line 15 of file DiactorosMessageFactory.php.
| Http\Message\MessageFactory\DiactorosMessageFactory::__construct | ( | ) |
Definition at line 25 of file DiactorosMessageFactory.php.
| Http\Message\MessageFactory\DiactorosMessageFactory::createRequest | ( | $method, | |
| $uri, | |||
| array | $headers = [], |
||
$body = null, |
|||
$protocolVersion = '1.1' |
|||
| ) |
{Creates a new PSR-7 request.
| string | $method | |
| string | UriInterface | $uri | |
| array | $headers | |
| resource | string | StreamInterface | null | $body | |
| string | $protocolVersion |
Implements Http\Message\RequestFactory.
Definition at line 33 of file DiactorosMessageFactory.php.
| Http\Message\MessageFactory\DiactorosMessageFactory::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 |
Implements Http\Message\ResponseFactory.
Definition at line 51 of file DiactorosMessageFactory.php.