Interface AxiosRequestConfig<D>

interface AxiosRequestConfig<D> {
    adapter?: AxiosAdapter;
    auth?: AxiosBasicCredentials;
    baseURL?: string;
    beforeRedirect?: ((options, responseDetails) => void);
    cancelToken?: CancelToken;
    data?: D;
    decompress?: boolean;
    env?: {
        FormData?: (new (...args) => object);
    };
    formSerializer?: FormSerializerOptions;
    headers?: Partial<AxiosHeaders & MethodsHeaders & CommonHeaders>;
    httpAgent?: any;
    httpsAgent?: any;
    insecureHTTPParser?: boolean;
    maxBodyLength?: number;
    maxContentLength?: number;
    maxRedirects?: number;
    method?: string;
    onDownloadProgress?: ((progressEvent) => void);
    onUploadProgress?: ((progressEvent) => void);
    params?: any;
    paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
    proxy?: false | AxiosProxyConfig;
    responseEncoding?: string;
    responseType?: ResponseType;
    signal?: GenericAbortSignal;
    socketPath?: null | string;
    timeout?: number;
    timeoutErrorMessage?: string;
    transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
    transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
    transitional?: TransitionalOptions;
    url?: string;
    validateStatus?: null | ((status) => boolean);
    withCredentials?: boolean;
    withXSRFToken?: boolean | ((config) => undefined | boolean);
    xsrfCookieName?: string;
    xsrfHeaderName?: string;
}

Type Parameters

  • D = any

Properties

adapter?: AxiosAdapter
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

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

Type declaration

    • (progressEvent): void
    • Parameters

      Returns void

onUploadProgress?: ((progressEvent) => void)

Type declaration

    • (progressEvent): void
    • Parameters

      Returns void

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

Type declaration

    • (status): boolean
    • Parameters

      • status: number

      Returns boolean

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

Type declaration

    • (config): undefined | boolean
    • Parameters

      Returns undefined | boolean

xsrfCookieName?: string
xsrfHeaderName?: string

Generated using TypeDoc