GuzzleMessageFactory
in package
implements
MessageFactory
FinalYes
Creates Guzzle messages.
This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
Tags
Table of Contents
Interfaces
- MessageFactory
Methods
- createRequest() : mixed
- createResponse() : mixed
Methods
createRequest()
public
createRequest(mixed $method, mixed $uri[, array<string|int, mixed> $headers = [] ][, mixed $body = null ][, mixed $protocolVersion = '1.1' ]) : mixed
Parameters
- $method : mixed
- $uri : mixed
- $headers : array<string|int, mixed> = []
- $body : mixed = null
- $protocolVersion : mixed = '1.1'
createResponse()
public
createResponse([mixed $statusCode = 200 ][, mixed $reasonPhrase = null ][, array<string|int, mixed> $headers = [] ][, mixed $body = null ][, mixed $protocolVersion = '1.1' ]) : mixed
Parameters
- $statusCode : mixed = 200
- $reasonPhrase : mixed = null
- $headers : array<string|int, mixed> = []
- $body : mixed = null
- $protocolVersion : mixed = '1.1'