* * @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory */ final class GuzzleMessageFactory implements MessageFactory { public function createRequest($method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1') { return new Request($method, $uri, $headers, $body, $protocolVersion); } public function createResponse($statusCode = 200, $reasonPhrase = null, array $headers = [], $body = null, $protocolVersion = '1.1') { return new Response($statusCode, $headers, $body, $protocolVersion, $reasonPhrase); } }