addAsyncRequestTransform
addAsyncResponseTransform
addMonitor
addMonitor: (monitor: (response: ApiResponse<unknown, unknown>) => void) => void addRequestTransform
addResponseTransform
any
asyncRequestTransforms
asyncResponseTransforms
axiosInstance
axiosInstance: AxiosInstance | AxiosCacheInstance
delete
delete: <T, U = T>( url: string, params?: object, axiosConfig?: AxiosRequestConfig,) => Promise<ApiResponse<T, U>> deleteHeader
deleteHeader: (name: string) => AxiosInstance
get
get: <T, U = T>( url: string, params?: object, axiosConfig?: AxiosRequestConfig,) => Promise<ApiResponse<T, U>> getBaseURL
getBaseURL: () => string
headers
headers: Record<string, AxiosHeaderValue>
monitors
monitors: (response: ApiResponse<unknown, unknown>) => void[] patch
patch: <T, U = T>( url: string, data?: object, axiosConfig?: AxiosRequestConfig,) => Promise<ApiResponse<T, U>> post
post: <T, U = T>( url: string, data?: object, axiosConfig?: AxiosRequestConfig,) => Promise<ApiResponse<T, U>> put
put: <T, U = T>( url: string, data?: object, axiosConfig?: AxiosRequestConfig,) => Promise<ApiResponse<T, U>> requestTransforms
responseTransforms
setBaseURL
setBaseURL: (baseUrl: string) => AxiosInstance
setHeader
setHeader: (key: string, value: string) => AxiosInstance
setHeaders
setHeaders: (headers: Record<string, string>) => AxiosInstance