Interface AxiosRequestConfig<D>

Type Parameters

  • D = any

Hierarchy

  • AxiosRequestConfig

Properties

adapter?: AxiosAdapter
axios-retry?: IAxiosRetryConfigExtended
baseURL?: string
beforeRedirect?: ((options, responseDetails) => void)

Type declaration

    • (options, responseDetails): void
    • Parameters

      • options: Record<string, any>
      • responseDetails: {
            headers: Record<string, string>;
        }
        • headers: Record<string, string>

      Returns void

cancelToken?: CancelToken
data?: D
decompress?: boolean
env?: {
    FormData?: (new (...args) => object);
}

Type declaration

  • Optional FormData?: (new (...args) => object)
      • new (...args): object
      • Parameters

        • Rest ...args: any[]
          Rest

        Returns object

httpAgent?: any
httpsAgent?: any
insecureHTTPParser?: boolean
maxBodyLength?: number
maxContentLength?: number
maxRedirects?: number
method?: string
onDownloadProgress?: ((progressEvent) => void)

Type declaration

    • (progressEvent): void
    • Parameters

      • progressEvent: any

      Returns void

onUploadProgress?: ((progressEvent) => void)

Type declaration

    • (progressEvent): void
    • Parameters

      • progressEvent: any

      Returns void

params?: any
paramsSerializer?: ((params) => string)

Type declaration

    • (params): string
    • Parameters

      • params: any

      Returns string

proxy?: false | AxiosProxyConfig
responseEncoding?: string
responseType?: ResponseType
signal?: AbortSignal
socketPath?: string
timeout?: number
timeoutErrorMessage?: string
transitional?: TransitionalOptions
url?: string
validateStatus?: ((status) => boolean)

Type declaration

    • (status): boolean
    • Parameters

      • status: number

      Returns boolean

withCredentials?: boolean
xsrfCookieName?: string
xsrfHeaderName?: string

Generated using TypeDoc