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 MylesBorins committed Feb 21, 2018
1 parent 3ec3c32 commit c18d958
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 @@ -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
Expand Down

0 comments on commit c18d958

Please sign in to comment.