Interface InternalAxiosRequestConfig<D>

interface InternalAxiosRequestConfig<D> {
    adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
    allowAbsoluteUrls?: boolean;
    auth?: AxiosBasicCredentials;
    axios-retry?: IAxiosRetryConfigExtended;
    baseURL?: string;
    beforeRedirect?: ((options, responseDetails) => void);
    cancelToken?: CancelToken;
    data?: D;
    decompress?: boolean;
    env?: {
        FormData?: (new (...args) => object);
        Request?: (new (input, init?) => Request);
        Response?: (new (body?, init?) => Response);
        fetch?: ((input, init?) => Promise<Response>);
    };
    family?: AddressFamily;
    fetchOptions?: Record<string, any> | Omit<RequestInit, "headers" | "method" | "signal" | "body">;
    formSerializer?: FormSerializerOptions;
    headers: AxiosRequestHeaders;
    http2Options?: Record<string, any> & {
        sessionTimeout?: number;
    };
    httpAgent?: any;
    httpVersion?: 1 | 2;
    httpsAgent?: any;
    insecureHTTPParser?: boolean;
    lookup?: ((hostname, options, cb) => void) | ((hostname, options) => Promise<LookupAddress | [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily]>);
    maxBodyLength?: number;
    maxContentLength?: number;
    maxRate?: number | [number, number];
    maxRedirects?: number;
    method?: StringLiteralsOrString<Method>;
    onDownloadProgress?: ((progressEvent) => void);
    onUploadProgress?: ((progressEvent) => void);
    params?: any;
    paramsSerializer?: CustomParamsSerializer | ParamsSerializerOptions;
    parseReviver?: ((this, key, value) => any);
    proxy?: false | AxiosProxyConfig;
    responseEncoding?: StringLiteralsOrString<responseEncoding>;
    responseType?: ResponseType;
    signal?: GenericAbortSignal;
    socketPath?: string;
    timeout?: number;
    timeoutErrorMessage?: string;
    transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
    transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
    transitional?: TransitionalOptions;
    transport?: any;
    url?: string;
    validateStatus?: ((status) => boolean);
    withCredentials?: boolean;
    withXSRFToken?: boolean | ((config) => boolean);
    xsrfCookieName?: string;
    xsrfHeaderName?: string;
}

Type Parameters

  • D = any

Hierarchy (view full)

Properties

adapter?: AxiosAdapterConfig | AxiosAdapterConfig[]
allowAbsoluteUrls?: boolean
axios-retry?: IAxiosRetryConfigExtended
baseURL?: string
beforeRedirect?: ((options, responseDetails) => void)

Type declaration

    • (options, responseDetails): void
    • Parameters

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

      Returns void

cancelToken?: CancelToken
data?: D
decompress?: boolean
env?: {
    FormData?: (new (...args) => object);
    Request?: (new (input, init?) => Request);
    Response?: (new (body?, init?) => Response);
    fetch?: ((input, init?) => Promise<Response>);
}

Type declaration

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

        • Rest ...args: any[]

        Returns object

  • Optional Request?: (new (input, init?) => Request)
      • new (input, init?): Request
      • Parameters

        • input: string | URL | Request
        • Optional init: RequestInit

        Returns Request

  • Optional Response?: (new (body?, init?) => Response)
      • new (body?, init?): Response
      • Parameters

        • Optional body: string | ArrayBuffer | ArrayBufferView | Blob | FormData | URLSearchParams
        • Optional init: ResponseInit

        Returns Response

  • Optional fetch?: ((input, init?) => Promise<Response>)
      • (input, init?): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optional init: RequestInit

        Returns Promise<Response>

family?: AddressFamily
fetchOptions?: Record<string, any> | Omit<RequestInit, "headers" | "method" | "signal" | "body">
formSerializer?: FormSerializerOptions
http2Options?: Record<string, any> & {
    sessionTimeout?: number;
}

Type declaration

  • Optional sessionTimeout?: number
httpAgent?: any
httpVersion?: 1 | 2
httpsAgent?: any
insecureHTTPParser?: boolean
lookup?: ((hostname, options, cb) => void) | ((hostname, options) => Promise<LookupAddress | [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily]>)

Type declaration

    • (hostname, options, cb): void
    • Parameters

      • hostname: string
      • options: object
      • cb: ((err, address, family?) => void)

      Returns void

Type declaration

maxBodyLength?: number
maxContentLength?: number
maxRate?: number | [number, number]
maxRedirects?: number
method?: StringLiteralsOrString<Method>
onDownloadProgress?: ((progressEvent) => void)

Type declaration

onUploadProgress?: ((progressEvent) => void)

Type declaration

params?: any
parseReviver?: ((this, key, value) => any)

Type declaration

    • (this, key, value): any
    • Parameters

      • this: any
      • key: string
      • value: any

      Returns any

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

Type declaration

    • (status): boolean
    • Parameters

      • status: number

      Returns boolean

withCredentials?: boolean
withXSRFToken?: boolean | ((config) => boolean)

Type declaration

xsrfCookieName?: string
xsrfHeaderName?: string