Skip to content

a clack tower for @magic homepages. promisified http request.

License

Notifications You must be signed in to change notification settings

magic-libraries/http

Repository files navigation

@magic-libraries/http

promisified XMLHttpRequest for @magic

html-docs

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge Known Vulnerabilities

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

...

About

a clack tower for @magic homepages. promisified http request.

Resources

License

Stars

Watchers

Forks

Packages

No packages published