Created
February 7, 2010 19:21
-
-
Save mbbx6spp/297620 to your computer and use it in GitHub Desktop.
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
/* 2009-2010 (c) Copyright Susan Potter. http://geek.susanpotter.net */ | |
/* Released under MIT License. */ | |
/* Example using node.js */ | |
(function () { | |
var sys = require('sys'); | |
var http = require('http'); | |
const PORT = 8080; | |
http.createServer(function (req, res) { | |
res.sendHeader(200, {'Content-Type': 'text/plain'}); | |
res.sendBody('Hello Gorgeous'); | |
res.finish(); | |
}).listen(PORT); | |
sys.puts('Server running at http://0.0.0.0:' + PORT); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment