Skip to content

Interface: Axios ​

Properties ​

PropertyType
defaultsAxiosDefaults
interceptors{ request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>; response: AxiosInterceptorManager<AxiosResponse<any, any, { }>>; }
interceptors.requestAxiosInterceptorManager<InternalAxiosRequestConfig<any>>
interceptors.responseAxiosInterceptorManager<AxiosResponse<any, any, { }>>

Methods ​

delete() ​

ts
delete<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


get() ​

ts
get<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


getUri() ​

ts
getUri(config?: AxiosRequestConfig<any>): string;

Parameters ​

ParameterType
config?AxiosRequestConfig<any>

Returns ​

string


ts
head<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


options() ​

ts
options<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


patch() ​

ts
patch<T, R, D>(
   url: string,
   data?: D,
config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
data?D
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


patchForm() ​

ts
patchForm<T, R, D>(
   url: string,
   data?: D,
config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
data?D
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


post() ​

ts
post<T, R, D>(
   url: string,
   data?: D,
config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
data?D
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


postForm() ​

ts
postForm<T, R, D>(
   url: string,
   data?: D,
config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
data?D
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


put() ​

ts
put<T, R, D>(
   url: string,
   data?: D,
config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
data?D
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


putForm() ​

ts
putForm<T, R, D>(
   url: string,
   data?: D,
config?: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
urlstring
data?D
config?AxiosRequestConfig<D>

Returns ​

Promise<R>


request() ​

ts
request<T, R, D>(config: AxiosRequestConfig<D>): Promise<R>;

Type Parameters ​

Type ParameterDefault type
Tany
RAxiosResponse<T, any, { }>
Dany

Parameters ​

ParameterType
configAxiosRequestConfig<D>

Returns ​

Promise<R>