Comment
Comment by simonw
That's a pretty awesome trick. I've been playing around with Node.js for proxying a bit as well (see http://github.com/simonw/dogproxy ) and I've run in to the same problem as this snippet - writing a full featured HTTP proxy is a bunch of work that I don't really want to do just for my little experiments. If anyone's looking for a neat project, writing a spec-compliant HTTP proxy library for Node.js that makes it easy to plug in additional functionality (like load balancing, rate limiting, caching etc) would be incredibly useful.