Interface AxiosInstance

interface AxiosInstance {
    defaults: Omit<AxiosDefaults<any, any>, "headers"> & {
        headers: HeadersDefaults & {
            [key: string]: AxiosHeaderValue;
        };
    };
    interceptors: {
        request: AxiosInterceptorManager<InternalAxiosRequestConfig<any, any>>;
        response: AxiosInterceptorManager<AxiosResponse<any, any, {}, any>>;
    };
    create(config?): AxiosInstance;
    delete<T, R, D, P>(url, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    get<T, R, D, P>(url, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    getUri(config?): string;
    head<T, R, D, P>(url, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    options<T, R, D, P>(url, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    patch<T, R, D, P>(url, data?, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    patchForm<T, R, D, P>(url, data?, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    post<T, R, D, P>(url, data?, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    postForm<T, R, D, P>(url, data?, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    put<T, R, D, P>(url, data?, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    putForm<T, R, D, P>(url, data?, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    query<T, R, D, P>(url, data?, config?): Promise<AxiosResponseResult<T, R, D, P>>;
    request<T, R, D, P>(config): Promise<AxiosResponseResult<T, R, D, P>>;
    <T, R, D, P>(config): Promise<AxiosResponseResult<T, R, D, P>>;
    <T, R, D, P>(url, config?): Promise<AxiosResponseResult<T, R, D, P>>;
}

Hierarchy (view full)

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

Properties

defaults: Omit<AxiosDefaults<any, any>, "headers"> & {
    headers: HeadersDefaults & {
        [key: string]: AxiosHeaderValue;
    };
}

Type declaration

interceptors: {
    request: AxiosInterceptorManager<InternalAxiosRequestConfig<any, any>>;
    response: AxiosInterceptorManager<AxiosResponse<any, any, {}, any>>;
}

Type declaration

Methods

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Parameters

    Returns string

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>

  • Type Parameters

    • T = any
    • R = typeof axiosResponseDefault
    • D = any
    • P = any

    Parameters

    Returns Promise<AxiosResponseResult<T, R, D, P>>