Skip to main content
Version: 3.12

HttpRequest <TResponseType>

HTTP Request as accepted by BaseHttpClient methods.

Hierarchy

Indexable

[k: string]: unknown

Index

Properties

optionalbody

body?: string | Readable | Buffer | Generator<unknown, any, any> | AsyncGenerator<unknown, any, any> | FormDataLike

optionalcookieJar

cookieJar?: ToughCookieJar | PromiseCookieJar

optionalencoding

encoding?: BufferEncoding

optionalfollowRedirect

followRedirect?: boolean | (response: any) => boolean

optionalheaderGenerator

headerGenerator?: { getHeaders: (options: Record<string, unknown>) => Record<string, string> }

Type declaration

  • getHeaders: (options: Record<string, unknown>) => Record<string, string>
      • (options: Record<string, unknown>): Record<string, string>
      • Parameters

        • options: Record<string, unknown>

        Returns Record<string, string>

optionalheaderGeneratorOptions

headerGeneratorOptions?: Record<string, unknown>

optionalheaders

headers?: SimpleHeaders

optionalinsecureHTTPParser

insecureHTTPParser?: boolean

optionalmaxRedirects

maxRedirects?: number

optionalmethod

method?: Method

optionalproxyUrl

proxyUrl?: string

optionalresponseType

responseType?: TResponseType

optionalsessionToken

sessionToken?: object

optionalsignal

signal?: AbortSignal

optionalthrowHttpErrors

throwHttpErrors?: boolean

optionaltimeout

timeout?: Partial<Timeout>

url

url: string | URL

optionaluseHeaderGenerator

useHeaderGenerator?: boolean