summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMatteo Collina <hello@matteocollina.com>2018-02-14 13:39:05 +0000
committerMatteo Collina <hello@matteocollina.com>2018-02-19 08:59:47 +0100
commit3d93f39190ec24284aee6acd0e0214862e651567 (patch)
tree923c296157ff570544ba85ecff2fd0b0ef553b8e /doc
parent8118da7430c33fc80a2f60c4a8cb3f568edbb29b (diff)
downloadandroid-node-v8-3d93f39190ec24284aee6acd0e0214862e651567.tar.gz
android-node-v8-3d93f39190ec24284aee6acd0e0214862e651567.tar.bz2
android-node-v8-3d93f39190ec24284aee6acd0e0214862e651567.zip
http2: make response.end() 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/http2.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index 66cf7aafa0..c73ed3b0bd 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -2624,11 +2624,16 @@ See [`response.socket`][].
#### response.end([data][, encoding][, callback])
<!-- YAML
added: v8.4.0
+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.