Optional
baseURL
baseURL?: string
Optional
beforeRedirect
beforeRedirect?: ((options: Record<string, any>,
responseDetails: { headers: Record<string, string>; }) => void) Optional
decompress
decompress?: boolean
Optional
env
env?: {
FormData?: (new (...args: any[]) => object);
}
Optional
family
family?: 6 | 4
Optional
httpAgent
httpAgent?: any
Optional
httpsAgent
httpsAgent?: any
Optional
insecureHTTPParser
insecureHTTPParser?: boolean
Optional
lookup
lookup?: ((hostname: string,
options: object,
cb: ((err: null | Error,
address: string,
family: number) => void)) => void) | ((hostname: string,
options: object) => Promise<string | [address
: string, family
: number]>) Optional
maxBodyLength
maxBodyLength?: number
Optional
maxContentLength
maxContentLength?: number
Optional
maxRate
maxRate?: number | [number, number]
Optional
maxRedirects
maxRedirects?: number
Optional
method
method?: string
Optional
onDownloadProgress
Optional
params
params?: any
Optional
responseEncoding
responseEncoding?: string
Optional
socketPath
socketPath?: null | string
Optional
timeout
timeout?: number
Optional
timeoutErrorMessage
timeoutErrorMessage?: string
Optional
transformResponse
Optional
transport
transport?: any
Optional
validateStatus
validateStatus?: null | ((status: number) => boolean)
Optional
withCredentials
withCredentials?: boolean
Optional
xsrfCookieName
xsrfCookieName?: string
Optional
xsrfHeaderName
xsrfHeaderName?: string