Options
All
  • Public
  • Public/Protected
  • All
Menu

The Tillhub HTTP client is an axios instance that carries the state of of Authentication in - if default headers have been set - has Authorization header.

Since this class is a singleton we are destroying state internally through .clearInstance().

Hierarchy

  • Client

Index

Constructors

Private constructor

Properties

Private Readonly axiosInstance

axiosInstance: AxiosInstance

Private requestInterceptorIds

requestInterceptorIds: number[] = []

Private responseInterceptorIds

responseInterceptorIds: number[] = []

Static Private instance

instance: Client

Methods

clearDefaults

  • clearDefaults(): void

getClient

  • getClient(): AxiosInstance

setDefaults

Static clearInstance

  • clearInstance(): void

Static getInstance

Legend

  • Variable
  • Function
  • Type alias
  • Class
  • Method
  • Enumeration
  • Interface
  • Private property
  • Static method

Generated using TypeDoc