nl_tokens: factory method to cache / fetch HttpProxy instances
pl_tokens: function createRouter ( target ) { var key = util . format ( '%s//%s:%s' , target . protocol , target . host , target . port ) , router = routers [ key ] , options ; // httpProxy.createProxyServer options // { //   target : <url string to be parsed with the url module> //   forward: <url string to be parsed with the url module> //   agent  : <object to be passed to http(s).request> //   ssl    : <object to be passed to https.createServer()> //   ws     : <true/false, if you want to proxy websockets> //   xfwd   : <true/false, adds x-forward headers> //   secure : <true/false, verify SSL certificate> //   toProxy: passes the absolute URL as the path (useful for proxying to proxies) // } if ( router === undefined || router === null ) { options = { xfwd : true , secure : ( <mask> . protocol && target . protocol === 'https://' ) , target : key , prependPath : ( useGateway === true ) , toProxy : ( useGateway === true ) } ; router = httpProxy . createProxyServer ( options ) ; routers [ key ] = router ; } return router ; }