UNPKG

rubic-sdk

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