fetch-agent

0.4.5 • Public • Published

fetch-agent

Get Remote Resources

Usage

npm install fetch-agent

Invoke

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) {
  ...
});

Readme

Keywords

Package Sidebar

Install

npm i fetch-agent

Weekly Downloads

5

Version

0.4.5

License

ISC

Last publish

Collaborators

  • limingv5