Constructors
constructor
-
Parameters
-
Default value instance: AxiosInstance = Axios
Properties
Private Readonly instance
instance: AxiosInstance
Accessors
axiosRef
- get axiosRef(): AxiosInstance
Methods
delete
- delete<T>(url: string, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>
-
Type parameters
Parameters
-
url: string
-
Optional config: AxiosRequestConfig
Returns Observable<AxiosResponse<T>>
get
- get<T>(url: string, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>
-
Type parameters
Parameters
-
url: string
-
Optional config: AxiosRequestConfig
Returns Observable<AxiosResponse<T>>
head
- head<T>(url: string, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>
-
Type parameters
Parameters
-
url: string
-
Optional config: AxiosRequestConfig
Returns Observable<AxiosResponse<T>>
Private makeObservable
- makeObservable<T>(axios: (...args: any[]) => AxiosPromise<T>, ...args: any[]): Observable<AxiosResponse<T>>
-
Type parameters
Parameters
-
axios: (...args: any[]) => AxiosPromise<T>
-
- (...args: any[]): AxiosPromise<T>
-
Parameters
Returns AxiosPromise<T>
-
Rest ...args: any[]
Returns Observable<AxiosResponse<T>>
patch
- patch<T>(url: string, data?: any, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>
-
Type parameters
Parameters
-
url: string
-
Optional data: any
-
Optional config: AxiosRequestConfig
Returns Observable<AxiosResponse<T>>
post
- post<T>(url: string, data?: any, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>
-
Type parameters
Parameters
-
url: string
-
Optional data: any
-
Optional config: AxiosRequestConfig
Returns Observable<AxiosResponse<T>>
put
- put<T>(url: string, data?: any, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>
-
Type parameters
Parameters
-
url: string
-
Optional data: any
-
Optional config: AxiosRequestConfig
Returns Observable<AxiosResponse<T>>
request
- request<T>(config: AxiosRequestConfig): Observable<AxiosResponse<T>>
-
Type parameters
Parameters
-
config: AxiosRequestConfig
Returns Observable<AxiosResponse<T>>