interface Adapter { delete<T>(url: string,
config?: AxiosRequestConfig<any>): Promise<T>; get<T>(url: string,
config?: AxiosRequestConfig<any>): Promise<T>; post<T>(url: string,
body: unknown,
config?: AxiosRequestConfig<any>): Promise<T>; put<T>(url: string,
body: unknown,
config?: AxiosRequestConfig<any>): Promise<T>; setHeader(header: string,
value: string): void; } Methods
delete
- delete<T>(url, config?): Promise<T>
Parameters
- url: string
Optional
config: AxiosRequestConfig<any>
Returns Promise<T>
get
- get<T>(url, config?): Promise<T>
Parameters
- url: string
Optional
config: AxiosRequestConfig<any>
Returns Promise<T>
post
- post<T>(url, body, config?): Promise<T>
Parameters
- url: string
- body: unknown
Optional
config: AxiosRequestConfig<any>
Returns Promise<T>
put
- put<T>(url, body, config?): Promise<T>
Parameters
- url: string
- body: unknown
Optional
config: AxiosRequestConfig<any>
Returns Promise<T>
setHeader
- setHeader(header, value): void
Parameters
- header: string
- value: string
Returns void