doc: fix http response.writeInformation() signature

The second argument is always treated as `headers`, so `callback`
cannot be passed without it.

Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Assisted-by: Claude Code
PR-URL: https://github.com/nodejs/node/pull/67492
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
This commit is contained in:
Yuya Inoue authored and Antoine du Hamel committed 2026-11-19 15:44:09 +01:00
1 parent ef7b49853a
commit 99f0fc42e9
1 file changed
+1 -1
+1 -1
View File
@@ -2710,7 +2710,7 @@ been transmitted are equal or not.
Attempting to set a header field name or value that contains invalid characters
will result in a [`TypeError`][] being thrown.
### `response.writeInformation(statusCode[, headers][, callback])`
### `response.writeInformation(statusCode[, headers[, callback]])`
<!-- YAML
added: