rubic-sdk
Version:
Simplify dApp creation
19 lines (18 loc) • 530 B
TypeScript
/**
* 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>;
}