Skip to content
Open
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
10 changes: 6 additions & 4 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -1341,10 +1341,11 @@ added: v8.4.0

* `headers` {HTTP/2 Headers Object} An object describing the headers
* `flags` {number} The associated numeric flags
* `rawHeaders` {HTTP/2 Raw Headers}

The `'trailers'` event is emitted when a block of headers associated with
trailing header fields is received. The listener callback is passed the
[HTTP/2 Headers Object][] and flags associated with the headers.
trailing header fields is received. The listener callback is passed the [HTTP/2 Headers Object][], flags associated
with the headers, and the headers in raw format (see [HTTP/2 Raw Headers][]).

This event might not be emitted if `http2stream.end()` is called
before trailers are received and the incoming data is not being read or
Expand Down Expand Up @@ -1704,10 +1705,11 @@ added: v8.4.0

* `headers` {HTTP/2 Headers Object}
* `flags` {number}
* `rawHeaders` {HTTP/2 Raw Headers}

The `'push'` event is emitted when response headers for a Server Push stream
are received. The listener callback is passed the [HTTP/2 Headers Object][] and
flags associated with the headers.
are received. The listener callback is passed the [HTTP/2 Headers Object][], flags associated
with the headers, and the headers in raw format (see [HTTP/2 Raw Headers][]).

```js
stream.on('push', (headers, flags) => {
Expand Down
Loading