This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require("http"); | |
var url = require("url"); | |
var path = require("path"); | |
var fs = require("fs"); | |
var port = process.argv[2] || 8000; | |
http.createServer(function(request, response) { | |
console.log(request["method"] + " " + request["url"]); | |
var uri = url.parse(request.url).pathname; |