A HTTP Proxy Server in 20 Lines of node.js Code
A HTTP Proxy Server in 20 Lines of node.js Code
This is just amazing. In 20 lines of node.js code and 10 minutes of time I was able to write a HTTP proxy. Take a look: var http = require('http'); http.createServer(function(request, response) { var proxy = http.createClient(80, request.headers['host']) var proxy_request =...
via catonmat.net