Class ReadableStream<R>

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

  • R = any

Implements

Constructors

Properties

locked: boolean

Methods

  • Parameters

    Returns AsyncIterableIterator<R>

  • Parameters

    • Optionalreason: any

    Returns Promise<void>

  • Type Parameters

    • T

    Parameters

    • transform: ReadableWritablePair<T, R>
    • Optionaloptions: StreamPipeOptions

    Returns ReadableStream<T>

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns AsyncIterableIterator<any>