From 2a849ba2412a43ed57aef2b8e50bd8e9048dabc9 Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Wed, 22 Aug 2018 14:01:23 -0400 Subject: [PATCH] doc: state callback behavior on empty buffer PR-URL: https://github.com/nodejs/node/pull/22461 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: Matteo Collina Reviewed-By: Luigi Pinca Reviewed-By: Vse Mozhet Byt --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index dad22731317057..2e60fe8bcef135 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -738,7 +738,7 @@ The `encoding` argument is optional and only applies when `chunk` is a string. Defaults to `'utf8'`. The `callback` argument is optional and will be called when this chunk of data -is flushed. +is flushed, but only if the chunk is non-empty. 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.