Skip to content

Instantly share code, notes, and snippets.

@nickjackson
Created October 8, 2012 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickjackson/3852983 to your computer and use it in GitHub Desktop.
Save nickjackson/3852983 to your computer and use it in GitHub Desktop.
var http = require('http');
http.createServer(function(req, res){
console.log('%s %s', req.method, req.url);
var body = 'Hello';
res.writeHead(200, { 'Content-Length': body.length });
res.end(body);
}).listen(80, '0.0.0.0');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment