ReadableStream
admin/uploads.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.
Type parameters
R
objectRequiredProperties
locked
booleanRequiredMethods
cancel
cancel(reason?
): Promise
<void
>
Parameters
reason
anyReturns
Promise
<void
>
Promise
Promise<void>RequiredgetReader
getReader(options
): ReadableStreamBYOBReader
Parameters
options
objectRequiredoptions.mode
"byob"RequiredReturns
getReader(): ReadableStreamDefaultReader
<R
>
Returns
ReadableStreamDefaultReader
<R
>
getReader(options?
): ReadableStreamReader
<R
>
Parameters
Returns
pipeThrough
pipeThrough<T
>(transform
, options?
): ReadableStream
<T
>
T
objectRequiredParameters
options
StreamPipeOptionsReturns
pipeTo
pipeTo(destination
, options?
): Promise
<void
>
Parameters
options
StreamPipeOptionsReturns
Promise
<void
>
Promise
Promise<void>Requiredtee
tee(): [ReadableStream
<R
>, ReadableStream
<R
>]
Returns
[ReadableStream
<R
>, ReadableStream
<R
>]
[[`ReadableStream`](/references/js-client/admin_uploads/modules/admin_uploads.internal#readablestream)<`R`\>, [`ReadableStream`](/references/js-client/admin_uploads/modules/admin_uploads.internal#readablestream)<`R`\>]
[ReadableStream<R>, ReadableStream<R>]Required
[[`ReadableStream`](/references/js-client/admin_uploads/modules/admin_uploads.internal#readablestream)<`R`\>, [`ReadableStream`](/references/js-client/admin_uploads/modules/admin_uploads.internal#readablestream)<`R`\>]
[ReadableStream<R>, ReadableStream<R>]RequiredWas this section helpful?