diff --git a/doc/api/http.md b/doc/api/http.md index 4923b6a61d..d5851b61db 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -764,6 +764,27 @@ req.once('response', (res) => { }); ``` +### request.writableEnded + + +* {boolean} + +Is `true` after [`request.end()`][] has been called. This property +does not indicate whether the data has been flushed, for this use +[`request.writableFinished`][] instead. + +### request.writableFinished + + +* {boolean} + +Is `true` if all data has been flushed to the underlying system, immediately +before the [`'finish'`][] event is emitted. + ### request.write(chunk[, encoding][, callback]) + +* {boolean} + +Is `true` after [`response.end()`][] has been called. This property +does not indicate whether the data has been flushed, for this use +[`response.writableFinished`][] instead. + ### response.writableFinished + +* {boolean} + +Is `true` after [`response.end()`][] has been called. This property +does not indicate whether the data has been flushed, for this use +[`writable.writableFinished`][] instead. + #### response.write(chunk[, encoding][, callback]) + +* {boolean} + +Is `true` after [`writable.end()`][] has been called. This property +does not indicate whether the data has been flushed, for this use +[`writable.writableFinished`][] instead. + ##### writable.writableFinished