Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpImpl

Generic Http client

Hierarchy

  • HttpImpl

Implements

Index

Constructors

Methods

Constructors

constructor

  • new HttpImpl(baseURL: string, options?: AxiosRequestConfig): HttpImpl
  • Creates your Http client

    Parameters

    • baseURL: string

      The baseUrl, i.e host url

    • Default value options: AxiosRequestConfig = DefaultAxiosOptions

      An options/configurations object applied to all requests The current implementation uses axios, so the options can be found here Axios Configuration

    Returns HttpImpl

Methods

delete

  • delete(url: string, options?: any | AxiosRequestConfig): Promise<HttpResponse>

get

  • get(url: string, options?: any | AxiosRequestConfig): Promise<HttpResponse>

post

  • post(url: string, payload: any, options?: any | AxiosRequestConfig): Promise<HttpResponse>

put

  • put(url: string, payload: any, options?: any | AxiosRequestConfig): Promise<HttpResponse>

Static mountError

  • mountError(url: string, error: any): HttpError

Generated using TypeDoc