@magic-libraries/http
promisified XMLHttpRequest for @magic
installation
npm install --save-exact @magic-libraries/http
usage
lib.http is an promisified http request, it expects a done and an error action as well as a url to point the request to.
see ExampleButton for a usage example
changelog
0.0.1
first release
0.0.2
- add responseType and json handling
- add requestType, json.stringify the request body if it is set
- add timeoutSeconds and timeout handler function
0.0.3
update dependencies
0.0.4 - unreleased
...