Created
May 21, 2012 06:19
-
-
Save CrabDude/2760765 to your computer and use it in GitHub Desktop.
Functional Programming with Streams in node.js
This file contains hidden or 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
// Load the http module | |
var http = require('http'); | |
// Setup a HTTP server, listen on port 8080 | |
http.createServer(function (req, res) { | |
res.writeHead(200, { | |
'Content-Type': 'text/plain' | |
}); | |
res.end('Hello World'); | |
}).listen(8080, '127.0.0.1'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment