interface ReadableStream
Usage in Deno
import { type ReadableStream } from "node:stream/web";
This Streams API interface represents a readable stream of byte data.
readonly
locked: boolean
cancel(reason?: any): Promise<void>
getReader(options: { mode: "byob"; }): ReadableStreamBYOBReader
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>
pipeThrough<T>(transform: ReadableWritablePair<T, R>,options?: StreamPipeOptions,): ReadableStream<T>
pipeTo(destination: WritableStream<R>,options?: StreamPipeOptions,): Promise<void>
tee(): [ReadableStream<R>, ReadableStream<R>]
[[Symbol.asyncIterator]](): AsyncIterableIterator<R>