Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: http: document res.write() drain return value
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenDueck authored and bnoordhuis committed Jul 31, 2012
1 parent 2981f01 commit af699c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/http.markdown
Expand Up @@ -426,6 +426,10 @@ header information and the first body to the client. The second time
data, and sends that separately. That is, the response is buffered up to the
first chunk of body.

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 again free.

### response.addTrailers(headers)

This method adds HTTP trailing headers (a header but at the end of the
Expand Down

0 comments on commit af699c4

Please sign in to comment.