Skip to content

ReadableStreamDefaultController

Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:2715

The ReadableStreamDefaultController interface of the Streams API represents a controller allowing control of a ReadableStream’s state and internal queue.

MDN Reference

R = any

get desiredSize(): null | number

Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:2721

The desiredSize read-only property of the required to fill the stream’s internal queue.

MDN Reference

null | number

close(): void

Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:2727

The close() method of the ReadableStreamDefaultController interface closes the associated stream.

MDN Reference

void


enqueue(chunk?): void

Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:2733

The enqueue() method of the js-nolint enqueue(chunk) - chunk - : The chunk to enqueue.

MDN Reference

R

void


error(reason): void

Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:2739

The error() method of the with the associated stream to error.

MDN Reference

any

void