@videosdk.live/server-sdk
    Preparing search index...

    Class HttpClient

    A thin, resilient HTTP layer over fetch with auth, timeouts and retries.

    Index
    • Type Parameters

      • T

      Parameters

      Returns Promise<T>

    post

    • PUT raw bytes to an absolute URL (such as a pre-signed upload URL). Sends only the given content type — no auth or JSON headers — so a signed URL's signature stays valid. Network and 5xx failures are retried.

      Parameters

      • url: string
      • body: Uint8Array
      • options: {
            contentType: string;
            maxRetries?: number;
            signal?: AbortSignal;
            timeoutMs?: number;
        }

      Returns Promise<void>

    • Type Parameters

      • T

      Parameters

      Returns Promise<T>