Skip to content

Instantly share code, notes, and snippets.

@btisdall
Created March 14, 2014 09:44
Show Gist options
  • Save btisdall/9544896 to your computer and use it in GitHub Desktop.
Save btisdall/9544896 to your computer and use it in GitHub Desktop.
var http = require('http'),
url = require('url');
var server = http.createServer().listen(8080, 'localhost');
server.on('request', function(req, res) {
var _url = url.parse(req.url, true);
console.log(_url);
res.end();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment