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 4bc87c1

Browse filesBrowse files
ryzokukenMylesBorins
authored andcommitted
doc: add parameters for settings events
Add parameters for the callback for the Http2Session:localSettings event and Http2Session:remoteSettings event inline with the pattern in the rest of the documentation. Refs: nodejs/help#877 (comment) PR-URL: #20371 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 1908668 commit 4bc87c1
Copy full SHA for 4bc87c1

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+6
-4
lines changed
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
@@ -195,9 +195,10 @@ event is emitted.
195195
added: v8.4.0
196196
-->
197197

198+
* `settings` {HTTP/2 Settings Object} A copy of the `SETTINGS` frame received.
199+
198200
The `'localSettings'` event is emitted when an acknowledgment `SETTINGS` frame
199-
has been received. When invoked, the handler function will receive a copy of
200-
the local settings.
201+
has been received.
201202

202203
When using `http2session.settings()` to submit new settings, the modified
203204
settings do not take effect until the `'localSettings'` event is emitted.
@@ -215,9 +216,10 @@ session.on('localSettings', (settings) => {
215216
added: v8.4.0
216217
-->
217218

219+
* `settings` {HTTP/2 Settings Object} A copy of the `SETTINGS` frame received.
220+
218221
The `'remoteSettings'` event is emitted when a new `SETTINGS` frame is received
219-
from the connected peer. When invoked, the handler function will receive a copy
220-
of the remote settings.
222+
from the connected peer.
221223

222224
```js
223225
session.on('remoteSettings', (settings) => {

0 commit comments

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