Properties
Optional
baseURL
baseURL?: string
Optional
beforeRedirect
beforeRedirect?: ((options, responseDetails) => void)
Type declaration
- (options, responseDetails): void
Returns void
Optional
decompress
decompress?: boolean
Optional
env
env?: {
FormData?: (new (...args) => object);
}
Type declaration
Optional
FormData?: (new (...args) => object)
- new (...args): object
Returns object
Optional
httpAgent
httpAgent?: any
Optional
httpsAgent
httpsAgent?: any
Optional
insecureHTTPParser
insecureHTTPParser?: boolean
Optional
lookup
Type declaration
- (hostname, options, cb): void
Parameters
hostname: string
options: object
cb: ((err, address, family?) => void)
- (err, address, family?): void
Returns void
Returns void
Optional
maxBodyLength
maxBodyLength?: number
Optional
maxContentLength
maxContentLength?: number
Optional
maxRate
maxRate?: number | [number, number]
Optional
maxRedirects
maxRedirects?: number
Optional
method
method?: string
Optional
onDownloadProgress
onDownloadProgress?: ((progressEvent) => void)
Type declaration
- (progressEvent): void
Returns void
Optional
onUploadProgress
onUploadProgress?: ((progressEvent) => void)
Type declaration
- (progressEvent): void
Returns void
Optional
params
params?: any
Optional
paramsSerializer
Optional
responseEncoding
responseEncoding?: string
Optional
socketPath
socketPath?: string
Optional
timeout
timeout?: number
Optional
timeoutErrorMessage
timeoutErrorMessage?: string
Optional
transformRequest
Optional
transformResponse
Optional
transport
transport?: any
Optional
validateStatus
validateStatus?: ((status) => boolean)
Type declaration
- (status): boolean
Returns boolean
Optional
withCredentials
withCredentials?: boolean
Optional
withXSRFToken
withXSRFToken?: boolean | ((config) => boolean)
Type declaration
- (config): boolean
Returns boolean
Optional
xsrfCookieName
xsrfCookieName?: string
Optional
xsrfHeaderName
xsrfHeaderName?: string