Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Request

Package version

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns Request

Properties

Optional agent

agent: Agent | function

body

body: ReadableStream

bodyUsed

bodyUsed: boolean

compress

compress: boolean

context

counter

counter: number

follow

follow: number

headers

headers: Headers

hostname

hostname: string

method

method: string

Optional port

port: undefined | number

protocol

protocol: string

redirect

redirect: RequestRedirect

referrer

referrer: string

size

size: number

timeout

timeout: number

url

url: string

Methods

arrayBuffer

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

blob

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

buffer

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

clone

  • Returns Request

json

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

text

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

textConverted

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

Generated using TypeDoc