Skip to content

ReadableStream

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2231

This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.

MDN Reference

R = any

readonly locked: boolean

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2233

[asyncIterator](options?): AsyncIterableIterator<R>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2253

ReadableStreamValuesOptions

AsyncIterableIterator<R>


cancel(reason?): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2235

any

Promise<void>


getReader(): ReadableStreamDefaultReader<R>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2237

ReadableStreamDefaultReader<R>

getReader(options): ReadableStreamBYOBReader

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2239

ReadableStreamGetReaderOptions

ReadableStreamBYOBReader


pipeThrough<T>(transform, options?): ReadableStream<T>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2241

T

ReadableWritablePair<T, R>

StreamPipeOptions

ReadableStream<T>


pipeTo(destination, options?): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2246

WritableStream<R>

StreamPipeOptions

Promise<void>


tee(): [ReadableStream<R>, ReadableStream<R>]

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2251

[ReadableStream<R>, ReadableStream<R>]


values(options?): AsyncIterableIterator<R>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2252

ReadableStreamValuesOptions

AsyncIterableIterator<R>