doc: document response.finished in http.markdown

Adds mention of response.finished to http.markdown
Originally submitted by @hackerjs. The original
commit needed a bit of cleanup on grammar.

Reviewed By: James M Snell <jasnell@gmail.com>
Reviewed By: Michaël Zasso <mic.besace@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/2414
This commit is contained in:
hackerjs 2013-12-10 18:56:04 +08:00 committed by James M Snell
parent ba50c2d85d
commit 3a7be23f98

View File

@ -452,6 +452,11 @@ If `data` is specified, it is equivalent to calling
If `callback` is specified, it will be called when the response stream
is finished.
### response.finished
Boolean value that indicates whether the response has completed. Starts
as `false`. After `response.end()` executes, the value will be `true`.
## http.request(options[, callback])
io.js maintains several connections per server to make HTTP requests.