Skip to content

Commit

Permalink
refactor 20
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshrajan committed Jun 17, 2012
1 parent 513c90d commit 4ee62a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/nodeserver.ls
@@ -0,0 +1,8 @@
(var http (require "http"))
(var server
(http.createServer
(function (request response)
(response.writeHead 200 {'Content-Type': 'text/plain'})
(response.end "Hello World\n"))))
(server.listen 1337 "127.0.0.1")
(console.log "Server running at http://127.0.0.1:1337/")

0 comments on commit 4ee62a2

Please sign in to comment.