You are viewing documentation for an outdated version. It is no longer supported!
Protocol Version
By default, Http protocol version 1.1
is used for each of your requests. Should you need to send a request with a different version, then useProtocolVersion()
will allow you to do so.
$builder = $client
->useProtocolVersion('1.0');
Via Configuration
The protocol version number can also be set via configs/http-clients.php
.
<?php
return [
'profiles' => [
'default' => [
'driver' => \Aedart\Http\Clients\Drivers\DefaultHttpClient::class,
'options' => [
'version' => '1.0'
// ... remaining not shown ...
]
],
],
];