summaryrefslogtreecommitdiff
path: root/doc/api/http.markdown
diff options
context:
space:
mode:
authorPavel Lang <langpavel@phpskelet.org>2012-09-18 18:26:08 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-09-28 02:57:01 +0200
commitb38277be266cfd6b6c3cc9e00730898f62a11f6e (patch)
treee152b00554641e78a5491db1eae40fc01f1e21e3 /doc/api/http.markdown
parentac17dc1764700f7413c240982c43717c41553ab0 (diff)
downloadnode-new-b38277be266cfd6b6c3cc9e00730898f62a11f6e.tar.gz
http: add response.headersSent property
Boolean property getter. True if headers was sent, false otherwise.
Diffstat (limited to 'doc/api/http.markdown')
-rw-r--r--doc/api/http.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/http.markdown b/doc/api/http.markdown
index c6809067ee..8d5cd13874 100644
--- a/doc/api/http.markdown
+++ b/doc/api/http.markdown
@@ -398,6 +398,10 @@ or
response.setHeader("Set-Cookie", ["type=ninja", "language=javascript"]);
+### response.headersSent
+
+Boolean (read-only). True if headers were sent, false otherwise.
+
### response.sendDate
When true, the Date header will be automatically generated and sent in