/request-es6

Make promise based async http requests

Primary LanguageJavaScriptMIT LicenseMIT

request-es6

Simple class wrapper around XmlHttpRequest witten in es6 with transpiling to es5.

var request = new HttpRequest([url], [eagerness], [useCredentials], [username], [password]);

request.then(function(response) {
  console.log(response);
}).catch(function(response) {
  console.error(response);
});;