httpRequest.get(url, data);
httpRequest.post(url, data);
httpResponse.success(...);
httpResponse.fail(...);
var url = '../endpoint/';
var data = {'name': 'kres', 'lastname': 'cruz'};
//Answer a promise
httpRequest.post(url, data)
.then(httpResponse.success, httpResponse.fail);