http: make http.ServerResponse emit 'end'
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 4 Sep 2012 19:54:40 +0000 (21:54 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 4 Sep 2012 20:07:48 +0000 (22:07 +0200)
commit790d651f0dfae13f1e2b799820ab18ac09f251b7
tree12f0637c7c246ce323bbdfbecb8b963bb8cdc70d
parent7b6d3cea2c165c4f83222dce9243884397584b8c
http: make http.ServerResponse emit 'end'

This used to be the internal 'finish' event. Make it public so API users will
know when the response has been sent completely.

Fixes #3855.
doc/api/http.markdown
lib/http.js
test/simple/test-http-response-end.js [new file with mode: 0644]