summaryrefslogtreecommitdiffstats
path: root/.graveyard/hyper/sink/index.js
blob: b556b88db48a98d67a3c96c9504facd0fb4c7835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require('http').createServer(function (req, res) {

  req.on('data', function (data) {
    require('util').puts(data);
  });

  req.on('end', function () {
    res.writeHead(200, {'Content-Type': 'text/plain', 'Content-Length': 0});
    res.end();
  });
}).listen(1337, '127.0.0.1', function () {
  console.log('Running HyperSink at http://127.0.0.1:1337/');
});