whitelist certain http routes
With allow-request you can build a whitelist of routes which you want to allow. This can be handy if your building an HTTP proxy and only want to allow certain routes on the target machine to get called.
npm install allow-request
var allowRequest =http =whitelist = ;// Allow GET requests to /blogwhitelist;// Allow POST requests to /blob/commentwhitelist;// Allow GET requests to the Users 3, 7 and 8// Notice that you are able to use any routes that you would// also be able to use in express (including RegEX) since// we are using the same route-to-regex converter.whitelist;var proxy = http;proxy;