API Core - v1.5.0
    Preparing search index...

    Class HttpClient

    Thin fetch-based HTTP client used internally by the consuming SDKs.

    Returns a normalised { data, status, headers } response and throws HttpError on non-2xx — so retry/rate-limit/observability layers stay unchanged when the transport is swapped. Every thrown HttpError snapshot is redacted through the client's injected Redaction vocabulary.

    Index
    • Builds an HTTP client pinned to a base URL, request-timeout budget, and optional default headers / undici dispatcher / redaction vocabulary.

      Parameters

      • root0: HttpClientConfig

        Client configuration.

        Construction options for HttpClient.

        • ReadonlybaseURL: string
        • Optional Readonlydispatcher?: object
        • Optional Readonlyheaders?: Record<string, string>
        • Optional Readonlyredaction?: Redaction
        • Readonlytimeout: number

      Returns HttpClient

    baseURL: string
    timeout: number