Skip to content

Instantly share code, notes, and snippets.

@berb
Created January 2, 2011 18:27
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 berb/762719 to your computer and use it in GitHub Desktop.
Save berb/762719 to your computer and use it in GitHub Desktop.
var url = require('url');
var http = require('http');
var stream = require('stream');;
http.createServer(function(req, res) {
res.writeHead(200, {
'Content-Type' : 'text/plain'
});
util.pump(req, res, function() {
res.end();
});
}).listen(8124, "127.0.0.1");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment