UNPKG

rubic-sdk

Version:
19 lines (18 loc) 530 B
/** * Http client, used to get and send http requests. */ export interface HttpClient { post<ResponseBody>(url: string, body: Object, options?: { headers?: { [header: string]: string; }; }): Promise<ResponseBody>; get<ResponseBody>(url: string, options?: { headers?: { [header: string]: string; }; params?: { [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>; }; }): Promise<ResponseBody>; }