Skip to content

Instantly share code, notes, and snippets.

@geek
Created April 26, 2013 17:18
Show Gist options
  • Save geek/5468818 to your computer and use it in GitHub Desktop.
Save geek/5468818 to your computer and use it in GitHub Desktop.
var Http = require('http');
Http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
Http.request({ host: 'localhost', port: 9000}).end();
}).listen(8000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment