Skip to content

Instantly share code, notes, and snippets.

@kaw2k
Last active August 29, 2015 13:57
Show Gist options
  • Save kaw2k/9835843 to your computer and use it in GitHub Desktop.
Save kaw2k/9835843 to your computer and use it in GitHub Desktop.
var http = require('http');
http.createServer(function(req, res) {
res.setTimeout(0)
setTimeout(function() {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write('<p>Hello World</p>');
res.end();
}, 100)
}).listen(3333);
console.log('Server is listening: ' + 3333);
{
"name": "nodeiswebscale",
"version": "5.0.0",
"dependencies": {
"express": "~3.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment