Options
All
  • Public
  • Public/Protected
  • All
Menu

Reader to a readable stream to an HTTP Request/Response Body. This is similar to the Streams API's ReadableStreamDefaultReader

Hierarchy

  • ReadableBodyStreamReader

Index

Accessors

Methods

Accessors

closed

  • get closed(): boolean
  • Getter for if the reader is closed.

    Returns boolean

    true if the reader is closed, false if not.

Methods

read

  • Read a chunk from the Body stream.

    Returns ReadResponse

    ReadResponse where the value property contains the read chunk as an ArrayBuffer, and the done property which is true if we read the entire stream.

readAll

  • readAll(): ArrayBuffer
  • Continually read the stream of the body until is it completed.

    Returns ArrayBuffer

    an ArrayBuffer of the entire streamed Body Content

releaseLock

  • releaseLock(): void
  • Release the lock on the associated ReadableStream that created this reader After releasing the lock, this reader instance is closed.

    Returns void

Legend

  • Method

Generated using TypeDoc