Files
medusa-store/www/apps/docs/content/references/js-client/interfaces/internal-10.ReadableStream.md
github-actions[bot] daea35fe73 chore(docs): Generated JS Client Reference (#5334)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-10-10 17:47:07 +00:00

3.8 KiB

displayed_sidebar
displayed_sidebar
jsClientSidebar

Interface: ReadableStream<R>

internal.ReadableStream

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

Type parameters

Name Type
R any

Properties

locked

Readonly locked: boolean

MDN Reference

Defined in

docs-util/node_modules/typescript/lib/lib.dom.d.ts:18489

Methods

cancel

cancel(reason?): Promise<void>

MDN Reference

Parameters

Name Type
reason? any

Returns

Promise<void>

Defined in

docs-util/node_modules/typescript/lib/lib.dom.d.ts:18491


getReader

getReader(options): ReadableStreamBYOBReader

MDN Reference

Parameters

Name Type
options Object
options.mode "byob"

Returns

ReadableStreamBYOBReader

Defined in

docs-util/node_modules/typescript/lib/lib.dom.d.ts:18493

getReader(): ReadableStreamDefaultReader<R>

Returns

ReadableStreamDefaultReader<R>

Defined in

docs-util/node_modules/typescript/lib/lib.dom.d.ts:18494

getReader(options?): ReadableStreamReader<R>

Parameters

Name Type
options? ReadableStreamGetReaderOptions

Returns

ReadableStreamReader<R>

Defined in

docs-util/node_modules/typescript/lib/lib.dom.d.ts:18495


pipeThrough

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

MDN Reference

Type parameters

Name
T

Parameters

Name Type
transform ReadableWritablePair<T, R>
options? StreamPipeOptions

Returns

ReadableStream<T>

Defined in

docs-util/node_modules/typescript/lib/lib.dom.d.ts:18497


pipeTo

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

MDN Reference

Parameters

Name Type
destination WritableStream<R>
options? StreamPipeOptions

Returns

Promise<void>

Defined in

docs-util/node_modules/typescript/lib/lib.dom.d.ts:18499


tee

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

MDN Reference

Returns

[ReadableStream<R>, ReadableStream<R>]

Defined in

docs-util/node_modules/typescript/lib/lib.dom.d.ts:18501