var http = require('http'); exports.start = function(port) { return http.createServer(function(req, resp) { resp.writeHead(200, {'Content-Type': 'text/plain'}); resp.end(req.url); }).listen(port); }