Back to Trilium

Interface AxiosInstance

docs/Script API/interfaces/Backend_Script_API._internal_.AxiosInstance.html

0.102.222.0 KB
Original Source

Interface AxiosInstance

interface AxiosInstance {
defaults: Omit<AxiosDefaults<any>, "headers"> & {
headers: HeadersDefaults & { [key: string]: AxiosHeaderValue };
};
interceptors: {
request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
response: AxiosInterceptorManager<AxiosResponse<any, any>>;
};
delete<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
config?: AxiosRequestConfig<D>,
): Promise<R>;
get<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
config?: AxiosRequestConfig<D>,
): Promise<R>;
getUri(config?: AxiosRequestConfig<any>): string;
head<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
config?: AxiosRequestConfig<D>,
): Promise<R>;
options<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
config?: AxiosRequestConfig<D>,
): Promise<R>;
patch<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
data?: D,
config?: AxiosRequestConfig<D>,
): Promise<R>;
patchForm<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
data?: D,
config?: AxiosRequestConfig<D>,
): Promise<R>;
post<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
data?: D,
config?: AxiosRequestConfig<D>,
): Promise<R>;
postForm<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
data?: D,
config?: AxiosRequestConfig<D>,
): Promise<R>;
put<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
data?: D,
config?: AxiosRequestConfig<D>,
): Promise<R>;
putForm<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
data?: D,
config?: AxiosRequestConfig<D>,
): Promise<R>;
request<T = any, R = AxiosResponse<T, any>, D = any>(
config: AxiosRequestConfig<D>,
): Promise<R>;
<T = any, R = AxiosResponse<T, any>, D = any>(
config: AxiosRequestConfig<D>,
): Promise<R>;
<T = any, R = AxiosResponse<T, any>, D = any>(
url: string,
config?: AxiosRequestConfig<D>,
): Promise<R>;
}

Hierarchy (View Summary)

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

Type Parameters

Parameters

Returns Promise<R>

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

Type Parameters

Parameters

Returns Promise<R>

Index

Properties

defaultsinterceptors

Methods

deletegetgetUriheadoptionspatchpatchFormpostpostFormputputFormrequest

Properties

defaults

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

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

Properties defaultsinterceptors Methods deletegetgetUriheadoptionspatchpatchFormpostpostFormputputFormrequest