π§HTTP Client Config
Guzzle Config
Default HTTP Config
<?php
use Saloon\Http\Connector;
class ForgeConnector extends Connector
{
// {...}
protected function defaultConfig(): array
{
return [
'timeout' => 30,
];
}
}<?php
use Saloon\Http\Request;
class GetServersRequest extends Request
{
// {...}
protected function defaultConfig(): array
{
return [
'timeout' => 30,
];
}
}Using Properties With Default HTTP Config
Using the config Method
Available Methods
set(array $items)
merge(...$items)
remove(string $key)
get(string $key, mixed $default = null)
all()
isEmpty
Last updated