updating webserver example for node API
This commit is contained in:
parent
2e23e6a2dc
commit
c73a3ec356
|
@ -3,7 +3,7 @@
|
|||
http: require 'http'
|
||||
|
||||
server: http.createServer (req, res) ->
|
||||
res.sendHeader 200, {'Content-Type': 'text/plain'}
|
||||
res.writeHeader 200, {'Content-Type': 'text/plain'}
|
||||
res.write 'Hello, World!'
|
||||
res.close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue