TransportFactory
Chooses the default underlying PSR-18 transport: Guzzle if it is installed (its GuzzleHttp\Client already implements PSR-18 ClientInterface, so it is used directly — no adapter needed), otherwise the zero-dependency CurlTransport.
Callers can override per named client via HttpClientConfig::$transport or globally via HttpClientFactory::setDefaultTransportFactory().
Synopsis
Section titled “Synopsis”final class TransportFactory
| Source | Http/Client/TransportFactory.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
default(): ClientInterface |
default()
Section titled “default()”public static function default(): ClientInterface
Returns ClientInterface