Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFetchOptions

Hierarchy

  • IFetchOptions

Index

Properties

body?: null | string | Buffer | Blob | Stream

request body. can be null, a string, a Buffer, a Blob, or a Node.js Readable stream

compress?: boolean

support gzip/deflate content encoding. false to disable

headers?: { User-Agent: string }

request headers. format is the identical to that accepted by the Headers constructor

Type declaration

  • User-Agent: string
method?: HTTPMethods

The HTTP Method of the request

redirect?: string

set to manual to extract redirect headers, error to reject redirect. Default "follow"

size?: number

maximum response body size in bytes. 0 to disable

Methods

  • agent(_parsedURL: any): void

Generated using TypeDoc