From 6f2ec25eba0186bf6827051c35d56713fac4b141 Mon Sep 17 00:00:00 2001 From: hackerjs <4141095@qq.com> Date: Tue, 10 Dec 2013 18:56:04 +0800 Subject: [PATCH] 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 --- doc/api/http.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 966b304b56d282..ad2473c98019d7 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -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.