Skip to content

Instantly share code, notes, and snippets.

@yuta-imai
Last active December 22, 2015 19:49
Show Gist options
  • Save yuta-imai/6521626 to your computer and use it in GitHub Desktop.
Save yuta-imai/6521626 to your computer and use it in GitHub Desktop.
var http = require('http');
http.createServer(function(req,res){
res.writeHead(200,{'Content-Type:': 'application/json'});
res.end(JSON.stringify(req.headers));
}).listen(80);
console.log('Server running at http://127.0.0.1:80/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment