flea-http

easy pure javascript xhr rest module with header injector


Keywords
XHR, Interceptors, Pure, Javascript, Rest, Alamo
License
MIT
Install
npm install flea-http@1.0.0

Documentation

flea

easy pure javascript xhr rest module with header injector es5 Compatibility

Installation

npm install flea-http

or Man Installation

download and

 <script src="../flea.js"></script>

Usage

var myHeaders = [{ Flip: "text/xml" }, { Flop: "text/xml" }];
flea("https://httpbin.org/get", "GET", myHeaders)
  .then(function(o) {
    console.log(JSON.parse(o.response));
  })
  .catch(function(error) {
    console.error("Something went wrong", error);
  });

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT