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 Gibson Fahnestock committed 2018-04-13 03:59:12 +01:00
1 parent d4bccccf23
commit 1ea1970c37
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