From 3a7be23f986f95412f968979c5d83ee68f3f2da2 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed By: Michaƫl Zasso PR-URL: https://github.com/nodejs/node/pull/2414 --- 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.