Open Journal Systems
3.3.0
|
Public Member Functions | |
createRequest ( $method, $uri, array $headers=[], $body=null, $protocolVersion='1.1') | |
createResponse ( $statusCode=200, $reasonPhrase=null, array $headers=[], $body=null, $protocolVersion='1.1') | |
Creates Guzzle messages.
Definition at line 14 of file GuzzleMessageFactory.php.
Http\Message\MessageFactory\GuzzleMessageFactory::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 19 of file GuzzleMessageFactory.php.
Http\Message\MessageFactory\GuzzleMessageFactory::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 38 of file GuzzleMessageFactory.php.