Skip to content

Instantly share code, notes, and snippets.

@JakubOboza
Created July 9, 2011 23:07
Show Gist options
  • Save JakubOboza/1074034 to your computer and use it in GitHub Desktop.
Save JakubOboza/1074034 to your computer and use it in GitHub Desktop.
var http = require('http');
var util = require('util');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
var msg = util.inspect(req);
res.end( msg );
console.log( msg );
}).listen(8000, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8000/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment