Skip to main content
Skip to main content

AxiosInstance

swaps.internal.AxiosInstance

Callable

AxiosInstance

AxiosInstance(config): AxiosPromise<any>

Parameters

configAxiosRequestConfig<any>Required

Returns

AxiosPromise<any>

AxiosPromiseAxiosPromise<any>Required

AxiosInstance

AxiosInstance(url, config?): AxiosPromise<any>

Parameters

urlstringRequired
configAxiosRequestConfig<any>

Returns

AxiosPromise<any>

AxiosPromiseAxiosPromise<any>Required

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

Inherited from

Axios.delete


get

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

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

Inherited from

Axios.get


getUri

getUri(config?): string

Parameters

configAxiosRequestConfig<any>

Returns

string

stringstring

Inherited from

Axios.getUri


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

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

Inherited from

Axios.head


options

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

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

Inherited from

Axios.options


patch

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

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
dataD
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

Inherited from

Axios.patch


post

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

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
dataD
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

Inherited from

Axios.post


put

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

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

urlstringRequired
dataD
configAxiosRequestConfig<D>

Returns

Promise<R>

PromisePromise<R>Required

Inherited from

Axios.put


request

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

TobjectRequired
RobjectRequired
DobjectRequired

Parameters

configAxiosRequestConfig<D>Required

Returns

Promise<R>

PromisePromise<R>Required

Inherited from

Axios.request

Was this section helpful?