Start separating transport
This commit is contained in:
parent
23844f9e76
commit
96014d3d53
6 changed files with 374 additions and 95 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue