Logos DX
    Preparing search index...

    Interface FetchConfig<H, P>

    Configuration object used for a fetch request, combining instance-level and request-specific settings.

    Provides complete context about how a request was configured, including retry settings, timeout, headers, and other options that influenced the request behavior.

    // Configuration contains merged settings from instance and request
    const config: FetchConfig = {
    baseUrl: 'https://api.example.com',
    timeout: 5000,
    retry: { maxAttempts: 3 },
    headers: { 'Authorization': 'Bearer token' }
    };
    interface FetchConfig<H = InstanceHeaders, P = InstanceParams> {
        attemptTimeout?: number;
        baseUrl?: string;
        determineType?: any;
        headers?: H;
        method?: string;
        params?: P;
        retry?: false | RetryConfig;
        totalTimeout?: number;
    }

    Type Parameters

    Index

    Properties

    attemptTimeout?: number

    Per-attempt timeout in milliseconds. Each retry attempt gets a fresh timeout. If an attempt times out, it can still be retried (unlike totalTimeout which stops everything).

    baseUrl?: string
    determineType?: any
    headers?: H
    method?: string
    params?: P
    retry?: false | RetryConfig
    totalTimeout?: number

    Total timeout for the entire request lifecycle in milliseconds. Applies to the complete operation including all retry attempts. If this fires, no more retries will be attempted.