From a92ea6774f6d6f7193bc977751b24af7756257be Mon Sep 17 00:00:00 2001 From: inoway46 Date: Tue, 1 Dec 2026 20:30:56 +0900 Subject: [PATCH] doc: document writableNeedDrain in http and http2 Document `outgoingMessage.writableNeedDrain` and `response.writableNeedDrain`, which exist as public API but were missing from http.md and http2.md. Refs: https://github.com/nodejs/node/pull/67896 Signed-off-by: inoway46 Assisted-by: Claude Code --- doc/api/http.md | 13 +++++++++++++ doc/api/http2.md | 14 ++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index 930772170b7..bb76f20adee 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3704,6 +3704,19 @@ added: v12.9.0 The number of buffered bytes. +### `outgoingMessage.writableNeedDrain` + + + +* Type: {boolean} + +Is `true` if the message's buffer has been full and the message will emit +`'drain'`. + ### `outgoingMessage.writableObjectMode` + +* Type: {boolean} + +The [`writable.writableNeedDrain`][] value of the [`Http2Stream`][] backing the +response. + #### `response.write(chunk[, encoding][, callback])`