easy pure javascript xhr rest module with header injector
npm install flea-http``bash`
npm install flea-http
`html`
`javascript``
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);
});