Skip to content

Commit

Permalink
doc: modify the return value of request.write()
Browse files Browse the repository at this point in the history
PR-URL: #18526
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
陈刚 authored and gibfahn committed Apr 13, 2018
1 parent dd4d075 commit 6b348d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,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
Expand Down

0 comments on commit 6b348d4

Please sign in to comment.