Properties
Protected axios
axios: AxiosInstance
Protected enabled
enabled: boolean = false
Protected request
request: number = null
Protected response
response: number = null
Methods
Protected getCacheByAxiosConfig
- getCacheByAxiosConfig(config: AxiosRequestConfig<any>): ETagCacheValue
Parameters
config: AxiosRequestConfig<any>
Protected getRequestInterceptor
- getRequestInterceptor(): (config: AxiosRequestConfig<any>) => AxiosRequestConfig<any>
Returns (config: AxiosRequestConfig<any>) => AxiosRequestConfig<any>
- (config: AxiosRequestConfig<any>): AxiosRequestConfig<any>
Parameters
config: AxiosRequestConfig<any>
Returns AxiosRequestConfig<any>
Protected getResponseErrorInterceptor
- getResponseErrorInterceptor(): (error: AxiosError<any, any>) => Promise<AxiosResponse<any, any>>
Returns (error: AxiosError<any, any>) => Promise<AxiosResponse<any, any>>
- (error: AxiosError<any, any>): Promise<AxiosResponse<any, any>>
Parameters
error: AxiosError<any, any>
Returns Promise<AxiosResponse<any, any>>
Protected getResponseInterceptor
- getResponseInterceptor(): (response: AxiosResponse<any, any>) => AxiosResponse<any, any>
Returns (response: AxiosResponse<any, any>) => AxiosResponse<any, any>
- (response: AxiosResponse<any, any>): AxiosResponse<any, any>
Parameters
response: AxiosResponse<any, any>
Returns AxiosResponse<any, any>