Skip to content

Instantly share code, notes, and snippets.

@simoncpu
Created December 21, 2009 11:09
Show Gist options
  • Save simoncpu/260905 to your computer and use it in GitHub Desktop.
Save simoncpu/260905 to your computer and use it in GitHub Desktop.
var sys = require('sys'),
http = require('http');
http.createServer(function (req, res) {
setTimeout(function () {
res.sendHeader(200, {'Content-Type': 'text/plain', 'X-POWERED-BY': 'simoncpu'});
res.sendBody('I can has IPv6 JavaScript Web server! Yay!');
res.finish();
}, 2000);
}).listen(80);
sys.puts('Running...');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment