Skip to content

ReadableStreamBYOBRequest

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2689

The ReadableStreamBYOBRequest interface of the Streams API represents a ‘pull request’ for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream’s internal queues).

MDN Reference

get atLeast(): null | number

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2708

null | number


get view(): null | Uint8Array<ArrayBufferLike>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2695

The view getter property of the ReadableStreamBYOBRequest interface returns the current view.

MDN Reference

null | Uint8Array<ArrayBufferLike>

respond(bytesWritten): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2701

The respond() method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.

MDN Reference

number

void


respondWithNewView(view): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2707

The respondWithNewView() method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.

MDN Reference

ArrayBuffer | ArrayBufferView<ArrayBufferLike>

void