The options this client was constructed with. Read-only — a client's behavior is fixed at construction, so build a second client rather than trying to mutate one.
Sends a DELETE request through this client.
the expected shape of the parsed response body.
absolute URL, or a path resolved against the client's BaseURL.
Optionalconfig: Omit<HttpRequestConfig, "Url" | "Method" | "Body">optional per-request settings, merged over the client's defaults.
the HttpResponse.
Sends a GET request through this client.
the expected shape of the parsed response body.
absolute URL, or a path resolved against the client's BaseURL.
Optionalconfig: Omit<HttpRequestConfig, "Url" | "Method" | "Body">optional per-request settings, merged over the client's defaults.
the HttpResponse.
Sends a HEAD request through this client. ResponseType is forced to none, so Data is always null.
the expected shape of the parsed response body.
absolute URL, or a path resolved against the client's BaseURL.
Optionalconfig: Omit<HttpRequestConfig, "Url" | "Method" | "Body">optional per-request settings, merged over the client's defaults.
the HttpResponse.
Sends a PATCH request through this client. Body handling matches HttpPost.
the expected shape of the parsed response body.
absolute URL, or a path resolved against the client's BaseURL.
Optionalbody: unknownthe request body.
Optionalconfig: Omit<HttpRequestConfig, "Url" | "Method" | "Body">optional per-request settings, merged over the client's defaults.
the HttpResponse.
Sends a POST request through this client. Body handling matches HttpPost.
the expected shape of the parsed response body.
absolute URL, or a path resolved against the client's BaseURL.
Optionalbody: unknownthe request body.
Optionalconfig: Omit<HttpRequestConfig, "Url" | "Method" | "Body">optional per-request settings, merged over the client's defaults.
the HttpResponse.
Sends a PUT request through this client. Body handling matches HttpPost.
the expected shape of the parsed response body.
absolute URL, or a path resolved against the client's BaseURL.
Optionalbody: unknownthe request body.
Optionalconfig: Omit<HttpRequestConfig, "Url" | "Method" | "Body">optional per-request settings, merged over the client's defaults.
the HttpResponse.
Sends a request using this client's defaults and hooks. Every other method on the class delegates here.
Per-request values win over client defaults, except Headers, which are merged key-by-key so
one request can override a single default header without discarding the rest. OnRequest
then gets the last word on the merged config.
the expected shape of the parsed response body.
per-request configuration, merged over the client's defaults.
the HttpResponse.
A configured HTTP client — the replacement for
axios.create(...).Holds a base URL, default headers, a timeout, and the HttpClientOptions hooks that stand in for axios interceptors. Construct one per upstream API, typically behind a lazy getter on a provider base class so the cost is paid only when that provider is actually used.
Instances are stateless apart from their options and safe to share across concurrent requests. Nothing is cached between calls, so a client whose
OnRequestreads a token always sends the current one.Example: A provider client with auth injection and 429 back-off