Peteris Krumins personal blog

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 =...
Points
116
HN comments
25
Submissions
1
Cited by
0 commenters

Software EngineeringWeb & Frontend2010

On Hacker News

SubmittedTitle on HNPointsComments
Apr 28, 2010A HTTP Proxy Server in 20 Lines of node.js Code by pkrumins11625

More from Peteris Krumins

All 57 posts →

Related posts from the same era