Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
javascript
nodejs
http.js
http.js
var sys = require("sys"), my_http = require("http"); my_http.createServer(function(request,response){ sys.puts("I got kicked"); response.writeHeader(200, {"Content-Type": "text/html"}); response.write("Hello World"); response.write("<br>And <b>again</b> !"); var delay=3000; setTimeout(function(){ response.write("<br>And again with delay of "+delay+"s"); response.end(); }, delay); }).listen(8080); sys.puts("Server Running on 8080");
Reload page
Preview
W3C validation
Edit Code
JS Console