Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Body

Package version

Hierarchy

Index

Constructors

constructor

  • new Body(body?: any, opts?: undefined | object): Body
  • Parameters

    • Optional body: any
    • Optional opts: undefined | object

    Returns Body

Properties

body

body: ReadableStream

bodyUsed

bodyUsed: boolean

size

size: number

timeout

timeout: number

Methods

arrayBuffer

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

blob

  • blob(): Promise<Buffer>
  • Returns Promise<Buffer>

buffer

  • buffer(): Promise<Buffer>
  • Returns Promise<Buffer>

json

  • json(): Promise<any>
  • Returns Promise<any>

text

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

textConverted

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

Generated using TypeDoc