flea-http
v1.0.0
Published
easy pure javascript xhr rest module with header injector
Downloads
3
Maintainers
Readme
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.