0.0.3 • Published 11 years ago

proxy-by-url v0.0.3

Weekly downloads
21
License
-
Repository
github
Last release
11 years ago

#proxy by url

this is a simple example of a node-http-middleware that will proxy based on the incoming url. say you want to proxy every request thing under /database to localhost:5984 (couchbd) (and remove the /database prefix)

this is how:

require('http-proxy').createServer(
  require('proxy-by-url')({
    '/database': { port: 5984, host: 'localhost' },
  })
).listen(8000)
0.0.3

11 years ago

0.0.2

12 years ago

0.0.1

13 years ago

0.0.0

13 years ago