version

Summary

Protocol version to use with the request.

Types

string, float

Default

1.1

Constant

GuzzleHttp\RequestOptions::VERSION

  1. // Force HTTP/1.0
  2. $request = $client->request('GET', '/get', ['version' => 1.0]);