thesportsdb-client
    Preparing search index...

    Interface RequestEvent

    One finished API call, passed to the requestListener option.

    interface RequestEvent {
        attempts: number;
        durationMs: number;
        error: unknown;
        fromCache: boolean;
        shared: boolean;
        status: number | null;
        url: string;
    }
    Index
    attempts: number

    HTTP requests made, counting retries; 0 when served by the cache or another caller's request.

    durationMs: number

    Milliseconds for the whole call, including rate-limit waits and retries.

    error: unknown
    fromCache: boolean
    shared: boolean

    True when an identical call already in flight supplied the result.

    status: number | null

    The last HTTP status; null if no response arrived or the result came from the cache.

    url: string

    The URL with any v1 key replaced by ***. Safe to log.