Skip to main content
ReadableStream - stream/web - Node documentation
interface ReadableStream

Usage in Deno

import { type ReadableStream } from "node:stream/web";

This Streams API interface represents a readable stream of byte data.

Type Parameters

R = any

Properties

readonly
locked: boolean

Methods

cancel(reason?: any): Promise<void>
getReader(options: { mode: "byob"; }): ReadableStreamBYOBReader
pipeTo(
destination: WritableStream<R>,
): Promise<void>
values(options?: { preventCancel?: boolean; }): AsyncIterableIterator<R>
[[Symbol.asyncIterator]](): AsyncIterableIterator<R>

Type Parameters

R = any