★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/c18d958750Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
doc: modify the return value of request.write()
PR-URL: #18526
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
陈刚 authored and MylesBorins committed Feb 21, 2018
1 parent 3ec3c32 commit c18d9587502701dd2fd0bfe5bbdeba4654edc3a6
Showing with 3 additions and 1 deletion.
  1. +3 −1 doc/api/http.md
@@ -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

0 comments on commit c18d958

Please sign in to comment.