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 252ca72

Browse filesBrowse files
ryzokukenMylesBorins
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) 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 daa0940 commit 252ca72
Copy full SHA for 252ca72

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
@@ -232,10 +232,13 @@ session.on('remoteSettings', (settings) => {
232232
added: v8.4.0
233233
-->
234234

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

240243
```js
241244
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.