Skip to content

Commit 252ca72

Browse 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 <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent daa0940 commit 252ca72

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

doc/api/http2.md

+7-4
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)