Skip to main content
Module

std/io/mod.ts>ToReadableStreamOptions

The Deno Standard Library
Go to Latest
interface ToReadableStreamOptions
import { type ToReadableStreamOptions } from "https://deno.land/std@0.223.0/io/mod.ts";

Options for toReadableStream.

Properties

optional
autoClose: boolean = true

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

optional
chunkSize: number

The size of chunks to allocate to read, the default is ~16KiB, which is the maximum size that Deno operations can currently support.

optional
strategy: QueuingStrategy<Uint8Array>

The queuing strategy to create the ReadableStream with.