rubic-sdk
Version:
Simplify dApp creation
21 lines (20 loc) • 601 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;
};
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>;
}