MELCloud & MELCloud Home API for Node.js - v48.2.0
    Preparing search index...

    Class HttpClient

    Thin fetch-based HTTP client used internally by the SDK.

    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.

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

      Parameters

      • root0: HttpClientConfig

        Client configuration.

        Construction options for HttpClient.

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

      Returns HttpClient

    baseURL: string
    timeout: number