doc: modify the return value of request.write()

PR-URL: https://github.com/nodejs/node/pull/18526
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
陈刚 authored and Ruben Bridgewater committed 2018-02-06 13:54:16 +01:00
1 parent 6a29630c30
commit 766eea6ca4
1 file changed
+3 -1
+3 -1
View File
@@ -681,7 +681,9 @@ Defaults to `'utf8'`.
The `callback` argument is optional and will be called when this chunk of data
is flushed.
Returns `request`.
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.
## Class: http.Server
<!-- YAML