From f7273edfde00e1583a94de7682ed2b3e193b7629 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 e781d63ac44..8251527fc8f 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -744,7 +744,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.