OptionalallowAbsoluteUrls
allowAbsoluteUrls?: boolean
OptionalallowedSocketPaths
allowedSocketPaths?: string | string[] | null
OptionalbaseURL
baseURL?: string
OptionalbeforeRedirect
beforeRedirect?: ( options: Record<string, any>, responseDetails: { headers: Record<string, string>; statusCode: HttpStatusCode; }, requestDetails: { headers: Record<string, string>; method: string; url: string; },) => void Optionaldecompress
decompress?: boolean
Optionalenv
env?: { fetch?: ( input: string | Request | URL, init?: RequestInit, ) => Promise<Response>; FormData?: new (...args: any[]) => object; Request?: new ( input: string | Request | URL, init?: RequestInit, ) => Request; Response?: new ( body?: | string | ArrayBuffer | ArrayBufferView<ArrayBufferLike> | Blob | FormData | URLSearchParams | null, init?: ResponseInit, ) => Response;} OptionalfetchOptions
fetchOptions?: | Record<string, any> | Omit<RequestInit, "signal" | "body" | "method" | "headers"> formDataHeaderPolicy?: "legacy" | "content-only"
Optionalhttp2Options
http2Options?: Record<string, any> & { sessionTimeout?: number } OptionalhttpAgent
httpAgent?: any
OptionalhttpsAgent
httpsAgent?: any
OptionalhttpVersion
httpVersion?: 2 | 1
OptionalinsecureHTTPParser
insecureHTTPParser?: boolean
Optionallookup
lookup?: | (
( hostname: string, options: object, cb: ( err: Error | null, address: LookupAddress | LookupAddress[], family?: AddressFamily, ) => void, ) => void )
| (
( hostname: string, options: object, ) => Promise< | LookupAddress | [ address
: LookupAddressEntry | LookupAddressEntry[], family
?: AddressFamily, ], > )
OptionalmaxBodyLength
maxBodyLength?: number
OptionalmaxContentLength
maxContentLength?: number
OptionalmaxRate
maxRate?: number | [number, number]
OptionalmaxRedirects
maxRedirects?: number
OptionalonDownloadProgress
Optionalparams
params?: any
OptionalparseReviver
parseReviver?: (
this: any,
key: string,
value: any,
context?: { source?: string },
) => any
Optionalredact
redact?: string[]
OptionalsocketPath
socketPath?: string | null
Optionaltimeout
timeout?: number
OptionaltimeoutErrorMessage
timeoutErrorMessage?: string
Optionaltransport
transport?: any
OptionalvalidateStatus
validateStatus?: ((status: number) => boolean) | null
OptionalwithCredentials
withCredentials?: boolean
OptionalxsrfCookieName
xsrfCookieName?: string