Skip to content

Client

Everything under Quiote\Http\Client.

ClassDescription
CurlTransportZero-dependency PSR-18 transport built on ext-curl and the Nyholm PSR-17 factory (already a hard framework dependency).
HttpClientThe framework HTTP client: a PSR-18 ClientInterface wrapping an underlying transport, adding base-URI resolution, default headers, a transient-failure retry policy, ergonomic verb helpers, and — the payoff for the whole abstraction — the central egress seam for telemetry.
HttpClientConfigMutable, fluent configuration for a named HTTP client, populated inside a HttpClientFactory::configure() callback (the dotnet AddHttpClient("name", c => ...) analogue).
HttpClientFactoryRegistry + factory for named HTTP clients, modelled on .NET’s services.AddHttpClient("name", c => ...) / IHttpClientFactory: you register a named client’s configuration once, then resolve it by name, and the same HttpClient instance is reused for that name for the lifetime of the process (a FrankenPHP worker keeps one per name) rather than being rebuilt on every call.
TransportFactoryChooses 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.
NamespaceContents
Exception3 types