From c7c22e3db1c826bcfb2bc66651ec480aae0d4ae0 Mon Sep 17 00:00:00 2001 From: yo mama Date: Sat, 4 Apr 2015 01:00:59 -0700 Subject: first --- http.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 http.js (limited to 'http.js') diff --git a/http.js b/http.js new file mode 100644 index 0000000..14c9c94 --- /dev/null +++ b/http.js @@ -0,0 +1,6 @@ +var http = require('http'); +http.createServer(function (req, res) { + res.writeHead(200, {'Content-Type': 'text/plain'}); + res.end('Hello World from Me\n'); + console.log(req); +}).listen(process.env.PORT); \ No newline at end of file -- cgit v1.2.3-70-g09d2