GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: update http2's `push` and `trailers` events with `rawHeaders` param · nodejs/node@fd9e14c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • http2.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/http2.md‎

Copy file name to clipboardExpand all lines: doc/api/http2.md
+6-4Lines changed: 6 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1338,10 +1338,11 @@ added: v8.4.0
13381338

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

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

13461347
This event might not be emitted if `http2stream.end()` is called
13471348
before trailers are received and the incoming data is not being read or
@@ -1695,10 +1696,11 @@ added: v8.4.0
16951696

16961697
* `headers` {HTTP/2 Headers Object}
16971698
* `flags` {number}
1699+
* `rawHeaders` {HTTP/2 Raw Headers}
16981700

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

17031705
```js
17041706
stream.on('push', (headers, flags) => {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.