xmlhttp-req
v1.2.0
Published
Creates http requests using the node built-in http module.
Downloads
1
Readme
http-req
Creates http requests using the node built-in http
module.
It's a polyfill for XmlHttpRequest in node, but it also contains some additional features like
var a = new XMLHttpRequest();
x.onreadystatechange = () => {
if(x.status == 200)
console.log(x.responseText);
}
a.postAPI({"Hello":"World"}) // sends an request to /api