Commit 82e6b293c73 for nodejs
commit 82e6b293c73afe8f830464c7df6410ef7496025e
Author: Yuya Inoue <65857152+inoway46@users.noreply.github.com>
Date: Tue Nov 24 18:32:25 2026 +0900
doc: fix http response.writeProcessing() description
The description of response.writeProcessing() was copied from
response.writeContinue() and said that the request body should be
sent, which is what 100 Continue means, not 102 Processing.
Describe what 102 means, document the callback that both methods
have always accepted, and point to the equivalent
response.writeInformation() call.
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Assisted-by: Claude Code
PR-URL: https://github.com/nodejs/node/pull/67705
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Tim Perry <pimterry@gmail.com>
diff --git a/doc/api/http.md b/doc/api/http.md
index 24418e9cd3e..42a7a59d69d 100644
--- a/doc/api/http.md
+++ b/doc/api/http.md
@@ -2577,12 +2577,15 @@ 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.
-### `response.writeContinue()`
+### `response.writeContinue([callback])`
<!-- YAML
added: v0.3.0
-->
+* `callback` {Function} Optional, called once the message has been written
+ to the socket.
+
Sends an HTTP/1.1 100 Continue message to the client, indicating that
the request body should be sent. See the [`'checkContinue'`][] event on
`Server`.
@@ -2744,14 +2747,18 @@ event on `http.ClientRequest`.
response.writeInformation(110, { 'X-Progress': '50%' });
```
-### `response.writeProcessing()`
+### `response.writeProcessing([callback])`
<!-- YAML
added: v10.0.0
-->
+* `callback` {Function} Optional, called once the message has been written
+ to the socket.
+
Sends an HTTP/1.1 102 Processing message to the client, indicating that
-the request body should be sent.
+the request has been received and is still being processed. This is
+equivalent to `response.writeInformation(102, null, callback)`.
## Class: `http.IncomingMessage`
@@ -5018,10 +5025,10 @@ const agent2 = new http.Agent({ proxyEnv: process.env });
[`response.writableFinished`]: #responsewritablefinished
[`response.write()`]: #responsewritechunk-encoding-callback
[`response.write(data, encoding)`]: #responsewritechunk-encoding-callback
-[`response.writeContinue()`]: #responsewritecontinue
+[`response.writeContinue()`]: #responsewritecontinuecallback
[`response.writeEarlyHints()`]: #responsewriteearlyhintshints-callback
[`response.writeHead()`]: #responsewriteheadstatuscode-statusmessage-headers
-[`response.writeProcessing()`]: #responsewriteprocessing
+[`response.writeProcessing()`]: #responsewriteprocessingcallback
[`server.close()`]: #serverclosecallback
[`server.headersTimeout`]: #serverheaderstimeout
[`server.keepAliveTimeoutBuffer`]: #serverkeepalivetimeoutbuffer