Interface AxiosExtendConfig<D>

Type Parameters

  • D = any

Hierarchy

  • AxiosRequestConfig<D>
    • AxiosExtendConfig

Properties

adapter?: AxiosAdapter
auth?: AxiosBasicCredentials
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[]

        Returns object

headers?: AxiosRequestHeaders
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

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

Type declaration

    • (params): string
    • Parameters

      • params: any

      Returns string

proxy?: false | AxiosProxyConfig
responseEncoding?: string
responseType?: ResponseType
retries?: number
shouldResetTimeout?: boolean
signal?: AbortSignal
socketPath?: null | string
timeout?: number
timeoutErrorMessage?: string
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[]
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[]
transitional?: TransitionalOptions
unique?: boolean
url?: string
validateStatus?: null | ((status) => boolean)

Type declaration

    • (status): boolean
    • Parameters

      • status: number

      Returns boolean

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

Methods

  • Parameters

    • error: any

    Returns void

  • Parameters

    • error: any

    Returns void

  • Parameters

    Returns AxiosRequestConfig<any> | Promise<AxiosRequestConfig<any>>

  • Parameters

    • error: any

    Returns void

  • Parameters

    Returns AxiosResponse<any, any> | Promise<AxiosResponse<any, any>>

  • Parameters

    • error: any

    Returns void

  • Parameters

    • retryNumber: number
    • error: any

    Returns number

  • Parameters

    • instance: AxiosInstance

    Returns void

Generated using TypeDoc