2011-02-04から1日間の記事一覧
簡単なhttp proxyを書いてみた。 var http = require('http'); http.createServer(function (req, res) { var proxy_headers = req.headers, proxy_req, client; function _client(host) { var h, _host, _port; if(host.indexOf(':') > 0){ h = host.split(…