summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAnto Aravinth <anto.aravinth.cse@gmail.com>2018-08-21 19:50:04 +0530
committerMatteo Collina <hello@matteocollina.com>2018-08-22 09:48:09 +0200
commit413a7e1deabaf5f0daa633df6e594f8cc1503a12 (patch)
tree4c95c5b3553a03a56e433cc3b20653c179cd19fe /doc
parent98cf84f2c9d13386362386eac6089bc356c017b2 (diff)
downloadandroid-node-v8-413a7e1deabaf5f0daa633df6e594f8cc1503a12.tar.gz
android-node-v8-413a7e1deabaf5f0daa633df6e594f8cc1503a12.tar.bz2
android-node-v8-413a7e1deabaf5f0daa633df6e594f8cc1503a12.zip
http: adding doc and debug for calling empty string on write function
PR-URL: https://github.com/nodejs/node/pull/22118 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/http.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/http.md b/doc/api/http.md
index 49a98d5f17..e781d63ac4 100644
--- a/doc/api/http.md
+++ b/doc/api/http.md
@@ -750,6 +750,9 @@ Returns `true` if the entire data was flushed successfully to the kernel
buffer. Returns `false` if all or part of the data was queued in user memory.
`'drain'` will be emitted when the buffer is free again.
+When `write` function is called with empty string or buffer, it does
+nothing and waits for more input.
+
## Class: http.Server
<!-- YAML
added: v0.1.17