blob: a6a61303a887a64b0dc18861a2be8c7e003aee92 [file] [log] [blame]
var httpServer = function() {
var http = require('http'),
url = require('url'),
fs = require('fs'),
start = function(port) {
var server = http.createServer(function(req, res) {
processHttpRequest(res);
});
server.listen(port, function() {
console.log('Listening on ' + port + '...');
});
},
processHttpRequest = function(res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Published Successfully.\n');
};
return {
start: start
}
}();
httpServer.start(3904);