Skip to main content
Skip to main content

Axios

swaps.internal.Axios

Properties

defaultsAxiosDefaults<any>Required
interceptorsobjectRequired
interceptors.requestAxiosInterceptorManager<AxiosRequestConfig<any>>Required
interceptors.responseAxiosInterceptorManager<AxiosResponse<any, any>>Required

Methods

delete

delete<T, R, D>(url, config?): Promise<R>

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

get

get<T, R, D>(url, config?): Promise<R>

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

getUri

getUri(config?): string

Parameters

configAxiosRequestConfig<any>

Returns

string

stringstring

head<T, R, D>(url, config?): Promise<R>

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

options

options<T, R, D>(url, config?): Promise<R>

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

patch

patch<T, R, D>(url, data?, config?): Promise<R>

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
dataD
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

post

post<T, R, D>(url, data?, config?): Promise<R>

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
dataD
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

put

put<T, R, D>(url, data?, config?): Promise<R>

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
dataD
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

request

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

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

configAxiosRequestConfig<D>Required

Returns

Promise<R>

PromisePromise<R>Required
Was this section helpful?