@dvxch/yandex-music
    Preparing search index...

    Interface RequestInit

    Options accepted by Request constructor.

    interface RequestInit {
        client?: Client;
        fetch?: FetchLike;
        headers?: Record<string, string>;
        proxyUrl?: string;
        retries?: number;
        retryBaseMs?: number;
        retryMaxMs?: number;
        timeout?: number;
        userAgent?: string;
    }
    Index

    Properties

    client?: Client

    The owning client, used to attach the Authorization header.

    fetch?: FetchLike

    fetch implementation to use. Defaults to the global fetch.

    headers?: Record<string, string>

    Starting headers. Defaults to a copy of BASE_HEADERS.

    proxyUrl?: string

    Optional proxy URL applied to every request.

    retries?: number

    Number of retries for transient failures on idempotent (GET) requests. Defaults to 2 (3 attempts total). Set 0 to disable.

    retryBaseMs?: number

    Initial retry backoff in ms. Defaults to 300.

    retryMaxMs?: number

    Maximum retry backoff in ms. Defaults to 4000.

    timeout?: number

    Default timeout in milliseconds. Defaults to DEFAULT_TIMEOUT_MS.

    userAgent?: string

    User-Agent header value. Defaults to USER_AGENT.