Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpService

Hierarchy

  • HttpService

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new HttpService(instance?: AxiosInstance): HttpService

Properties

Private Readonly instance

instance: AxiosInstance

Accessors

axiosRef

  • get axiosRef(): AxiosInstance

Methods

delete

  • delete<T>(url: string, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>

get

  • get<T>(url: string, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>

head

  • head<T>(url: string, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>

Private makeObservable

  • makeObservable<T>(axios: (...args: any[]) => AxiosPromise<T>, ...args: any[]): Observable<AxiosResponse<T>>
  • Type parameters

    • T

    Parameters

    • axios: (...args: any[]) => AxiosPromise<T>
        • (...args: any[]): AxiosPromise<T>
        • Parameters

          • Rest ...args: any[]

          Returns AxiosPromise<T>

    • Rest ...args: any[]

    Returns Observable<AxiosResponse<T>>

patch

  • patch<T>(url: string, data?: any, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>

post

  • post<T>(url: string, data?: any, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>

put

  • put<T>(url: string, data?: any, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>

request

  • request<T>(config: AxiosRequestConfig): Observable<AxiosResponse<T>>

Generated using TypeDoc