Skip to content

ReadableStream

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2224

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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2226

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

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

ReadableStreamValuesOptions

AsyncIterableIterator<R>


cancel(reason?): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2228

any

Promise<void>


getReader(): ReadableStreamDefaultReader<R>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2230

ReadableStreamDefaultReader<R>

getReader(options): ReadableStreamBYOBReader

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2232

ReadableStreamGetReaderOptions

ReadableStreamBYOBReader


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

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2234

T

ReadableWritablePair<T, R>

StreamPipeOptions

ReadableStream<T>


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

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

WritableStream<R>

StreamPipeOptions

Promise<void>


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

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2244

[ReadableStream<R>, ReadableStream<R>]


values(options?): AsyncIterableIterator<R>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2245

ReadableStreamValuesOptions

AsyncIterableIterator<R>