Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

Commit 56c1b4e

Browse files
committed
http2: docs for ServerHttp2Stream headersSent & pushAllowed (Squash)
1 parent 28250cd commit 56c1b4e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

doc/api/http2.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,27 @@ added: REPLACEME
921921

922922
Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer.
923923

924+
#### http2stream.headersSent
925+
<!-- YAML
926+
added: REPLACEME
927+
-->
928+
929+
* Value: {boolean}
930+
931+
Boolean (read-only). True if headers were sent, false otherwise.
932+
933+
#### http2stream.pushAllowed
934+
<!-- YAML
935+
added: REPLACEME
936+
-->
937+
938+
* Value: {boolean}
939+
940+
Read-only property mapped to the `SETTINGS_ENABLE_PUSH` flag of the remote
941+
client's most recent `SETTINGS` frame. Will be `true` if the remote peer
942+
accepts push streams, `false` otherwise. Settings are the same for every
943+
`Http2Stream` in the same `Http2Session`.
944+
924945
#### http2stream.pushStream(headers[, options], callback)
925946
<!-- YAML
926947
added: REPLACEME

0 commit comments

Comments
 (0)