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

Hierarchy

  • ReadableStream

Implements

Constructors

Properties

locked: boolean

Methods

  • Returns AsyncIterableIterator<R>

  • Parameters

    • Optional reason: any

    Returns Promise<void>

  • Type Parameters

    • T

    Parameters

    • transform: ReadableWritablePair<T, R>
    • Optional options: StreamPipeOptions

    Returns ReadableStream<T>

  • Parameters

    Returns Promise<void>

Generated using TypeDoc