summaryrefslogtreecommitdiff
path: root/doc/api/http2.md
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-09-13 09:31:48 -0700
committerAnna Henningsen <anna@addaleax.net>2018-09-17 16:57:23 +0200
commitefe0bbcd2fde5f60546fa2dc60295956ba440a3c (patch)
tree70526483e70a906d8b27062ba551c4d164ce695e /doc/api/http2.md
parenteee5adfab5af5f7eb672cbc3cbbad141c455c54d (diff)
downloadandroid-node-v8-efe0bbcd2fde5f60546fa2dc60295956ba440a3c.tar.gz
android-node-v8-efe0bbcd2fde5f60546fa2dc60295956ba440a3c.tar.bz2
android-node-v8-efe0bbcd2fde5f60546fa2dc60295956ba440a3c.zip
http2: add http2stream.endAfterHeaders property
Indicates is the END_STREAM flag was set on the received HEADERS frame PR-URL: https://github.com/nodejs/node/pull/22843 Fixes: https://github.com/nodejs/node/issues/22497 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r--doc/api/http2.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index 7aec57e111..feeb66aa88 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -958,6 +958,17 @@ added: v8.4.0
Set to `true` if the `Http2Stream` instance has been destroyed and is no longer
usable.
+#### http2stream.endAfterHeaders
+<!-- YAML
+added: REPLACEME
+-->
+
+* {boolean}
+
+Set the `true` if the `END_STREAM` flag was set in the request or response
+HEADERS frame received, indicating that no additional data should be received
+and the readable side of the `Http2Stream` will be closed.
+
#### http2stream.pending
<!-- YAML
added: v9.4.0