Crypto SDK
    Preparing search index...

    Function executeRequest

    • Executes an HTTP request, retrying transient failures with backoff. makeInit is called per attempt, so each gets its own timeout. A request that is not idempotent is retried only after 429 or 503, when the server did not process it; never after a lost connection or 504.

      Type Parameters

      • T

      Parameters

      • fetchFn: (input: string | URL | Request, init?: RequestInit) => Promise<Response>
      • url: string
      • makeInit: () => RequestInit
      • retry: RetryConfig
      • idempotent: boolean = true

      Returns Promise<T>