Skip to content

Commit 2a849ba

Browse files
RubenVerborghtargos
authored andcommitted
doc: state callback behavior on empty buffer
PR-URL: #22461 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent e2a801a commit 2a849ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ The `encoding` argument is optional and only applies when `chunk` is a string.
738738
Defaults to `'utf8'`.
739739

740740
The `callback` argument is optional and will be called when this chunk of data
741-
is flushed.
741+
is flushed, but only if the chunk is non-empty.
742742

743743
Returns `true` if the entire data was flushed successfully to the kernel
744744
buffer. Returns `false` if all or part of the data was queued in user memory.

0 commit comments

Comments
 (0)