Interface: Axios
Properties
| Property | Type |
|---|---|
defaults | AxiosDefaults |
interceptors | { request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>; response: AxiosInterceptorManager<AxiosResponse<any, any, { }>>; } |
interceptors.request | AxiosInterceptorManager<InternalAxiosRequestConfig<any>> |
interceptors.response | AxiosInterceptorManager<AxiosResponse<any, any, { }>> |
Methods
delete()
ts
delete<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
get()
ts
get<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
getUri()
ts
getUri(config?: AxiosRequestConfig<any>): string;Parameters
| Parameter | Type |
|---|---|
config? | AxiosRequestConfig<any> |
Returns
string
head()
ts
head<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
options()
ts
options<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
patch()
ts
patch<T, R, D>(
url: string,
data?: D,
config?: AxiosRequestConfig<D>): Promise<R>;Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
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 Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
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 Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
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 Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
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 Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
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 Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
url | string |
data? | D |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
request()
ts
request<T, R, D>(config: AxiosRequestConfig<D>): Promise<R>;Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
R | AxiosResponse<T, any, { }> |
D | any |
Parameters
| Parameter | Type |
|---|---|
config | AxiosRequestConfig<D> |
Returns
Promise<R>