mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
updating webserver example for node API
This commit is contained in:
parent
2e23e6a2dc
commit
c73a3ec356
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
http: require 'http'
|
http: require 'http'
|
||||||
|
|
||||||
server: http.createServer (req, res) ->
|
server: http.createServer (req, res) ->
|
||||||
res.sendHeader 200, {'Content-Type': 'text/plain'}
|
res.writeHeader 200, {'Content-Type': 'text/plain'}
|
||||||
res.write 'Hello, World!'
|
res.write 'Hello, World!'
|
||||||
res.close()
|
res.close()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue