AxiosInstance interface

Extends

Axios

Properties

defaults

Inherited Properties

interceptors

Inherited Methods

delete<T, R, D>(string, AxiosRequestConfig<D>)
get<T, R, D>(string, AxiosRequestConfig<D>)
getUri(AxiosRequestConfig<any>)
head<T, R, D>(string, AxiosRequestConfig<D>)
options<T, R, D>(string, AxiosRequestConfig<D>)
patch<T, R, D>(string, D, AxiosRequestConfig<D>)
patchForm<T, R, D>(string, D, AxiosRequestConfig<D>)
post<T, R, D>(string, D, AxiosRequestConfig<D>)
postForm<T, R, D>(string, D, AxiosRequestConfig<D>)
put<T, R, D>(string, D, AxiosRequestConfig<D>)
putForm<T, R, D>(string, D, AxiosRequestConfig<D>)
request<T, R, D>(AxiosRequestConfig<D>)

Property Details

defaults

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

Property Value

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

Inherited Property Details

interceptors

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

Property Value

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

Inherited From Axios.interceptors

Inherited Method Details

delete<T, R, D>(string, AxiosRequestConfig<D>)

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

Parameters

url

string

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.delete

get<T, R, D>(string, AxiosRequestConfig<D>)

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

Parameters

url

string

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.get

getUri(AxiosRequestConfig<any>)

function getUri(config?: AxiosRequestConfig<any>): string

Parameters

config

AxiosRequestConfig<any>

Returns

string

Inherited From Axios.getUri

head<T, R, D>(string, AxiosRequestConfig<D>)

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

Parameters

url

string

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.head

options<T, R, D>(string, AxiosRequestConfig<D>)

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

Parameters

url

string

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.options

patch<T, R, D>(string, D, AxiosRequestConfig<D>)

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

Parameters

url

string

data

D

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.patch

patchForm<T, R, D>(string, D, AxiosRequestConfig<D>)

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

Parameters

url

string

data

D

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.patchForm

post<T, R, D>(string, D, AxiosRequestConfig<D>)

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

Parameters

url

string

data

D

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.post

postForm<T, R, D>(string, D, AxiosRequestConfig<D>)

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

Parameters

url

string

data

D

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.postForm

put<T, R, D>(string, D, AxiosRequestConfig<D>)

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

Parameters

url

string

data

D

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.put

putForm<T, R, D>(string, D, AxiosRequestConfig<D>)

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

Parameters

url

string

data

D

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.putForm

request<T, R, D>(AxiosRequestConfig<D>)

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

Parameters

config

AxiosRequestConfig<D>

Returns

Promise<R>

Inherited From Axios.request