mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
ef7b49853a
commit
99f0fc42e9
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user