summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-01-08 12:18:22 -0800
committerJames M Snell <jasnell@gmail.com>2018-01-11 11:55:19 -0800
commitee2e7fcd5ff330f036f6502cded21eb013941f89 (patch)
treecf272a93229258416dc9f0854d9854ac4629f313 /doc
parent20fe04f113fb81423585077265d3026584989232 (diff)
downloadandroid-node-v8-ee2e7fcd5ff330f036f6502cded21eb013941f89.tar.gz
android-node-v8-ee2e7fcd5ff330f036f6502cded21eb013941f89.tar.bz2
android-node-v8-ee2e7fcd5ff330f036f6502cded21eb013941f89.zip
http2: remember sent headers
Add sentHeaders, sentTrailers, and sentInfoHeaders properties on `Http2Stream`. PR-URL: https://github.com/nodejs/node/pull/18045 Fixes: https://github.com/nodejs/node/issues/16619 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/http2.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index f07c5fb091..e842ec1c18 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -989,6 +989,34 @@ destroyed after either receiving an `RST_STREAM` frame from the connected peer,
calling `http2stream.close()`, or `http2stream.destroy()`. Will be
`undefined` if the `Http2Stream` has not been closed.
+#### http2stream.sentHeaders
+<!-- YAML
+added: REPLACEME
+-->
+
+* Value: {[Headers Object][]}
+
+An object containing the outbound headers sent for this `Http2Stream`.
+
+#### http2stream.sentInfoHeaders
+<!-- YAML
+added: REPLACEME
+-->
+
+* Value: {[Headers Object][]\[\]}
+
+An array of objects containing the outbound informational (additional) headers
+sent for this `Http2Stream`.
+
+#### http2stream.sentTrailers
+<!-- YAML
+added: REPLACEME
+-->
+
+* Value: {[Headers Object][]}
+
+An object containing the outbound trailers sent for this this `HttpStream`.
+
#### http2stream.session
<!-- YAML
added: v8.4.0