promisified XMLHttpRequest for @magic
npm install --save-exact @magic-libraries/http
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
first release
- add responseType and json handling
- add requestType, json.stringify the request body if it is set
- add timeoutSeconds and timeout handler function
update dependencies
...