mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
doc: fix misleading sentence in http.md
Calling `response.end(data)` is not 100% equivalent to calling `response.write(data)` followed by `response.end()`. PR-URL: https://github.com/nodejs/node/pull/26465 Fixes: https://github.com/nodejs/node/issues/26005 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
This commit is contained in:
1 parent
a2bed79726
commit
1706a2d7d8
1 file changed
+1
-1
+1
-1
@@ -1146,7 +1146,7 @@ This method signals to the server that all of the response headers and body
|
||||
have been sent; that server should consider this message complete.
|
||||
The method, `response.end()`, MUST be called on each response.
|
||||
|
||||
If `data` is specified, it is equivalent to calling
|
||||
If `data` is specified, it is similar in effect to calling
|
||||
[`response.write(data, encoding)`][] followed by `response.end(callback)`.
|
||||
|
||||
If `callback` is specified, it will be called when the response stream
|
||||
|
||||
Reference in new issue
Block a user