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

http2: edge case errors, consistency, nits #167

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,27 @@ added: REPLACEME

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

#### http2stream.headersSent
<!-- YAML
added: REPLACEME
-->

* Value: {boolean}

Boolean (read-only). True if headers were sent, false otherwise.

#### http2stream.pushAllowed
<!-- YAML
added: REPLACEME
-->

* Value: {boolean}

Read-only property mapped to the `SETTINGS_ENABLE_PUSH` flag of the remote
client's most recent `SETTINGS` frame. Will be `true` if the remote peer
accepts push streams, `false` otherwise. Settings are the same for every
`Http2Stream` in the same `Http2Session`.

#### http2stream.pushStream(headers[, options], callback)
<!-- YAML
added: REPLACEME
Expand Down Expand Up @@ -1367,7 +1388,7 @@ server.on('stream', (stream, headers) => {
server.listen(80);
```

### http2.connect(authority, options, listener)
### http2.connect(authority[, options][, listener])
<!-- YAML
added: REPLACEME
-->
Expand Down
Loading