kinetex - v1.0.0-rc.1
    Preparing search index...

    Function createRetryInterceptor

    • Create a retry interceptor pair (response + error) with exponential back-off, jitter, and per-status-code configuration.

      Parameters

      • config: Partial<RetryConfig> = {}

        Retry configuration (defaults used for omitted fields)

      Returns {
          responseInterceptor: ResponseInterceptorFn;
          errorInterceptor: ErrorInterceptorFn;
      }

      • responseInterceptor: ResponseInterceptorFn

        Triggers retries for responses with retryable status codes

      • errorInterceptor: ErrorInterceptorFn

        Triggers retries when a request fails with a retryable error