fgb-vt - v1.0.4
    Preparing search index...

    Interface HttpConnectorOptions

    Configuration options for HttpConnector.

    interface HttpConnectorOptions {
        headers?: Record<string, string>;
        maxConcurrency?: number;
        retry?: { attempts: number; backoff: number };
        timeout?: number;
    }
    Index

    Properties

    headers?: Record<string, string>

    Default headers sent with every request.

    Useful for authorization tokens, custom user-agent strings, or CDN-specific headers (e.g. { Authorization: 'Bearer ...' }).

    maxConcurrency?: number

    Maximum number of concurrent HTTP Range Requests issued by a single HttpConnector.readRanges call.

    Limits parallelism to avoid overwhelming the origin server or exhausting local socket resources.

    6
    
    retry?: { attempts: number; backoff: number }

    Retry configuration for transient failures.

    Retries are attempted on HTTP 5xx responses, HTTP 429 (Too Many Requests), network errors, and timeouts. Backoff between attempts follows an exponential schedule: backoff * 2^attempt ms.

    Type Declaration

    • attempts: number

      Total number of attempts (including the initial request).

    • backoff: number

      Base backoff delay in milliseconds before the first retry.

    { attempts: 3, backoff: 200 }
    
    timeout?: number

    Per-request timeout in milliseconds.

    If a single fetch does not complete within this window, the request is aborted and (if retries remain) retried.

    30000