Node.js http create echo server with pipe
var http = require('http'); var server = http.createServer( function(req, res) { res.writeHead(200);//from w ww . j ava 2s.c om req.pipe(res); }); server.listen(1337); console.log('Server started...');