Get Remote Resources
npm install fetch-agent
var fetch = require("fetch-agent");
fetch.request(url, [hostsMap,] function (err, buff, nsres) {
...
});
fetch.request(option, [hostsMap,] function (err, buff, nsres) {
...
});
fetch.proxy(req, res, function onSuccess(err, buff, nsres) {
...
}, function onError(err, nsres) {
...
});