Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 448922d

Browse filesBrowse files
ryzokukenBethGriggs
authored andcommitted
doc: add parameters for Http2Session:stream event
Add parameters for the callback for the Http2Session:stream event inline with the pattern in the rest of the documentation. Refs: nodejs/help#877 (comment) Backport-PR-URL: #22850 PR-URL: #20547 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 395ce84 commit 448922d
Copy full SHA for 448922d

File tree

Expand file treeCollapse file tree

1 file changed

+7
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/http2.md‎

Copy file name to clipboardExpand all lines: doc/api/http2.md
+7-4Lines changed: 7 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,13 @@ session.on('remoteSettings', (settings) => {
233233
added: v8.4.0
234234
-->
235235

236-
The `'stream'` event is emitted when a new `Http2Stream` is created. When
237-
invoked, the handler function will receive a reference to the `Http2Stream`
238-
object, a [HTTP/2 Headers Object][], and numeric flags associated with the
239-
creation of the stream.
236+
* `stream` {Http2Stream} A reference to the stream
237+
* `headers` {HTTP/2 Headers Object} An object describing the headers
238+
* `flags` {number} The associated numeric flags
239+
* `rawHeaders` {Array} An array containing the raw header names followed by
240+
their respective values.
241+
242+
The `'stream'` event is emitted when a new `Http2Stream` is created.
240243

241244
```js
242245
const http2 = require('http2');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.