Options
All
  • Public
  • Public/Protected
  • All
Menu

A ResourceResponse that uses a list of Uint8Arrays as the underlying data source.

Hierarchy

  • Uint8ArrayResourceResponse

Implements

Index

Constructors

constructor

Methods

abort

  • abort(): void
  • Abort any ongoing read operation with a ColibrioError with errorType set to ColibrioErrorType.ABORTED.

    Returns void

asText

  • asText(): Promise<string>
  • Fetch the response body as text.

    The supported text encodings are:

    • UTF-8
    • UTF-16LE
    • UTF-16BE

    Returns Promise<string>

asUint8Array

  • asUint8Array(): Promise<Uint8Array>
  • Fetch the response body as an Uint8Array. Note that the underlying ArrayBuffer may contain more data than just the body.

    Returns Promise<Uint8Array>

getMetadata

getReadableStream

  • getReadableStream(): ReadableStream<Uint8Array>

Generated using TypeDoc