Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMutable

Hierarchy

Implemented by

Index

Properties

Methods

Properties

bodyUsed

bodyUsed: boolean

Methods

arrayBuffer

  • arrayBuffer(): Promise<ArrayBuffer>
  • Returns Promise<ArrayBuffer>

json

  • json<T>(callback: Convert<T>): Promise<T>
  • json<T>(verify: Verify<T>): Promise<T>
  • json(): Promise<Json>
  • Performs the conversion of the JSON

    Type parameters

    • T: any | number | string

    Parameters

    • callback: Convert<T>

      the conversion function

    Returns Promise<T>

    the converted JSON as the correct JavaScript/TypeScript object, number or string

  • Performs the verification of the JSON

    Type parameters

    • T

    Parameters

    Returns Promise<T>

    the verifed JSON casted to the correct TypeScript interface

  • Retrieves the JSON from the response, just as the native Response.json does

    Returns Promise<Json>

    the response as JSON

text

  • text(): Promise<string>
  • Returns Promise<string>