Interface AxiosDefaults<D>

Construct a type with the properties of T except for those in type K.

interface AxiosDefaults<D = any> {
    adapter?: AxiosAdapter;
    auth?: AxiosBasicCredentials;
    baseURL?: string;
    beforeRedirect?: (
        options: Record<string, any>,
        responseDetails: { headers: Record<string, string> },
    ) => void;
    cancelToken?: CancelToken;
    data?: D;
    decompress?: boolean;
    env?: { FormData?: new (...args: any[]) => object };
    formSerializer?: FormSerializerOptions;
    headers: HeadersDefaults;
    httpAgent?: any;
    httpsAgent?: any;
    insecureHTTPParser?: boolean;
    maxBodyLength?: number;
    maxContentLength?: number;
    maxRedirects?: number;
    method?: string;
    onDownloadProgress?: (progressEvent: ProgressEvent) => void;
    onUploadProgress?: (progressEvent: 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: number) => boolean;
    withCredentials?: boolean;
    withXSRFToken?:
        | boolean
        | (config: AxiosRequestConfig) => undefined | boolean;
    xsrfCookieName?: string;
    xsrfHeaderName?: string;
}

Type Parameters

  • D = any

Hierarchy (View Summary, Expand)

Properties

adapter?: AxiosAdapter
baseURL?: string
beforeRedirect?: (
    options: Record<string, any>,
    responseDetails: { headers: Record<string, string> },
) => void
cancelToken?: CancelToken
data?: D
decompress?: boolean
env?: { FormData?: new (...args: any[]) => object }
formSerializer?: FormSerializerOptions
httpAgent?: any
httpsAgent?: any
insecureHTTPParser?: boolean
maxBodyLength?: number
maxContentLength?: number
maxRedirects?: number
method?: string
onDownloadProgress?: (progressEvent: ProgressEvent) => void
onUploadProgress?: (progressEvent: ProgressEvent) => void
params?: any
proxy?: false | AxiosProxyConfig
responseEncoding?: string
responseType?: ResponseType
socketPath?: null | string
timeout?: number
timeoutErrorMessage?: string
transitional?: TransitionalOptions
url?: string
validateStatus?: null | (status: number) => boolean
withCredentials?: boolean
withXSRFToken?: boolean | (config: AxiosRequestConfig) => undefined | boolean
xsrfCookieName?: string
xsrfHeaderName?: string
MMNEPVFCICPMFPCPTTAAATR