Skip to content

Instantly share code, notes, and snippets.

@clifton
Created March 15, 2012 07:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifton/2042703 to your computer and use it in GitHub Desktop.
Save clifton/2042703 to your computer and use it in GitHub Desktop.
var http = require('http');
http.createServer(function (req, res) {
setTimeout(function() {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World!');
}, 1000);
}).listen(1337);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment