Constructors
constructor
- new HttpClient(baseURL, timeout?): HttpClient
Parameters
baseURL: string
Optional
timeout: number
Properties
client
client: AxiosInstance
Methods
get
- get<T>(url, config?): Promise<T>
Parameters
url: string
config: {} = {}
Returns Promise<T>
getRaw
- getRaw<T>(url, config?): Promise<T & {
status: number;
}> Parameters
url: string
config: {} = {}
Returns Promise<T & {
status: number;
}>
post
- post<T>(url, data, config?): Promise<T>
Parameters
url: string
data: any
config: {} = {}
Returns Promise<T>