Back to Trilium

Class Axios

docs/Script API/classes/Backend_Script_API._internal_.Axios.html

0.102.214.7 KB
Original Source

Class Axios

Hierarchy (View Summary)

Index

Constructors

constructor

Properties

defaultsinterceptors

Methods

deletegetgetUriheadoptionspatchpatchFormpostpostFormputputFormrequest

Constructors

constructor

new Axios(config?: AxiosRequestConfig<any>): Axios

Parameters

Returns Axios

Properties

defaults

defaults: AxiosDefaults

interceptors

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

Methods

delete

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

Type Parameters

Parameters

Returns Promise<R>

get

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

Type Parameters

Parameters

Returns Promise<R>

getUri

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

Parameters

Returns string

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

Type Parameters

Parameters

Returns Promise<R>

options

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

Type Parameters

Parameters

Returns Promise<R>

patch

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

Type Parameters

Parameters

Returns Promise<R>

patchForm

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

Type Parameters

Parameters

Returns Promise<R>

post

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

Type Parameters

Parameters

Returns Promise<R>

postForm

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

Type Parameters

Parameters

Returns Promise<R>

put

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

Type Parameters

Parameters

Returns Promise<R>

putForm

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

Type Parameters

Parameters

Returns Promise<R>

request

request<T = any, R = AxiosResponse<T, any>, D = any>(
config: AxiosRequestConfig<D>,
): Promise<R>

Type Parameters

Parameters

Returns Promise<R>

Settings

Member Visibility

  • Protected
  • Inherited
  • External

ThemeOSLightDark

On This Page

Constructors constructor Properties defaultsinterceptors Methods deletegetgetUriheadoptionspatchpatchFormpostpostFormputputFormrequest