Interface ToReadableStreamOptions

Options for toReadableStream.

interface ToReadableStreamOptions {
    autoClose?: boolean;
    chunkSize?: number;
    strategy?: QueuingStrategy<Uint8Array>;
}

Properties

autoClose?: boolean

If the reader is also a Closer, automatically close the reader when EOF is encountered, or a read error occurs.

{true}
chunkSize?: number

The size of chunks to allocate to read.

{16640}
strategy?: QueuingStrategy<Uint8Array>

The queuing strategy to create the ReadableStream with.