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

    Interface ResponseLike

    The minimal slice of a fetch Response the transport reads.

    interface ResponseLike {
        body?: ReadableStream<Uint8Array<ArrayBufferLike>> | null;
        status: number;
        arrayBuffer(): Promise<ArrayBuffer>;
    }
    Index

    Properties

    Methods

    Properties

    body?: ReadableStream<Uint8Array<ArrayBufferLike>> | null

    The response body as a stream, when the fetch implementation exposes one (the global fetch does). Enables streaming downloads straight to disk; on minimal fetch shims that omit it, downloads transparently fall back to buffering via ResponseLike.arrayBuffer.

    status: number

    HTTP status code.

    Methods

    • The response body as bytes.

      Returns Promise<ArrayBuffer>