universal-ledger-agent
Version:
The universal ledger agent framework, supporting plugins for message communication
17 lines (16 loc) • 426 B
TypeScript
export interface HttpService {
/**
* Perform a JSON GET-request and wait
* for response
* @param {string} url
* @return the json object response
*/
getRequest(url: string): Promise<any>;
/**
* Perform a POST-request
* @param {string} url
* @param {object} postBody
* @return Object json object
*/
postRequest(url: string, postBody: object): Promise<object>;
}