@contentauth/c2pa-js
    Preparing search index...
    • Fetches input, retrying on network errors and on responses whose status is deemed retryable (see FetchWithRetryOptions.isRetryableStatus), with exponential backoff (respecting a Retry-After header when present). Gives up on receiving AbortError and does not retry.

      Callers are responsible for reading and validating the body themselves (e.g. .json(), .text(), streaming, or their own size cap), which makes this suitable for arbitrary requests (custom methods, headers, bodies) rather than just simple GETs.

      Parameters

      • input: string

        The URL to fetch. Validated up front — a malformed URL throws immediately rather than being retried, since it can never succeed.

      • Optionalinit: RequestInit

        Standard fetch request options (method, headers, body, signal, etc.).

      • Optionaloptions: FetchWithRetryOptions

        Options for configuring the retry policy.

      Returns Promise<Response>

      The successful response.