Skip to content

Instantly share code, notes, and snippets.

@undoZen
Last active December 31, 2015 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save undoZen/7906831 to your computer and use it in GitHub Desktop.
Save undoZen/7906831 to your computer and use it in GitHub Desktop.
'use strict';
var http = require('http');
var apiproxy = require('express-apiproxy');
exports = module.exports = function () {
return function (req, res, next) {
req.uest = apiproxy(req, {
agent: new http.Agent({ maxSockets: 2 })
});
next();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment