Start separating transport

This commit is contained in:
Roy Hyunjin Han 2015-02-20 15:38:53 -05:00
commit 96014d3d53
6 changed files with 374 additions and 95 deletions

View file

@ -1,5 +1,8 @@
var proxy = require('http-proxy').createProxyServer({
target: {host: 'localhost', port: 9000}
}).on('error', function(err, req, res) {
console.log('[ERROR] %s', err);
res.end();
});
var server = require('http').createServer(function(req, res) {
console.log('[REQUEST.%s] %s', req.method, req.url);