summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMatteo Collina <hello@matteocollina.com>2018-02-14 12:32:01 +0000
committerMatteo Collina <hello@matteocollina.com>2018-02-19 08:59:32 +0100
commit8118da7430c33fc80a2f60c4a8cb3f568edbb29b (patch)
tree2586e96efc2f5cfe969623e3670e02566786689d /doc
parentf6721c20df67c0f5bbd1ea58d304159160be03f1 (diff)
downloadandroid-node-v8-8118da7430c33fc80a2f60c4a8cb3f568edbb29b.tar.gz
android-node-v8-8118da7430c33fc80a2f60c4a8cb3f568edbb29b.tar.bz2
android-node-v8-8118da7430c33fc80a2f60c4a8cb3f568edbb29b.zip
http: OutgoingMessage.end() should return this
PR-URL: https://github.com/nodejs/node/pull/18780 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/http.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/http.md b/doc/api/http.md
index 74ba9e8792..daa058a8b0 100644
--- a/doc/api/http.md
+++ b/doc/api/http.md
@@ -544,11 +544,16 @@ See [`request.socket`][]
### request.end([data[, encoding]][, callback])
<!-- YAML
added: v0.1.90
+changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/18780
+ description: This method now returns a reference to `ClientRequest`.
-->
* `data` {string|Buffer}
* `encoding` {string}
* `callback` {Function}
+* Returns: {this}
Finishes sending the request. If any parts of the body are
unsent, it will flush them to the stream. If the request is
@@ -1041,11 +1046,16 @@ See [`response.socket`][].
### response.end([data][, encoding][, callback])
<!-- YAML
added: v0.1.90
+changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/18780
+ description: This method now returns a reference to `ServerResponse`.
-->
* `data` {string|Buffer}
* `encoding` {string}
* `callback` {Function}
+* Returns: {this}
This method signals to the server that all of the response headers and body
have been sent; that server should consider this message complete.