XMLHttpRequest proxy for Browser and WebWorkers
npm install uupaa.xhrproxy.js
XMLHttpRequest Proxy for Browser and WebWorkers.
- XHRProxy.js wiki
- WebModule
- Slide
- Development
``js`
`js
importScripts("lib/XHRProxy.js");
XHRProxy.get("./index.html", function(error, responseText, xhr) {
console.log(responseText);
});
`
Use NodeProxy.js.
`js
var NodeProxy = require("uupaa.nodeproxy.js");
NodeProxy.get("./index.html", function(error, responseText, xhr) {
console.log(responseText);
});
``