@launchdarkly/js-server-sdk-common - v2.26.1
    Preparing search index...

    Interface BodyReader

    A reader over a response body stream.

    interface BodyReader {
        cancel?(): void | Promise<unknown>;
        read(): Promise<{ done: boolean; value?: Uint8Array<ArrayBufferLike> }>;
    }
    Index
    • Releases the reader and its connection.

      Returns void | Promise<unknown>

    • Resolves with the next chunk, or with done: true when the server ends the stream. Rejects when the connection terminates before the server ends the stream.

      Returns Promise<{ done: boolean; value?: Uint8Array<ArrayBufferLike> }>