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 41e8931

Browse filesBrowse files
ryzokukenBethGriggs
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) Backport-PR-URL: #22850 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 aa341d1 commit 41e8931
Copy full SHA for 41e8931

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
*Note*: When using `http2session.settings()` to submit new settings, the
203204
modified settings do not take effect until the `'localSettings'` event is
@@ -216,9 +217,10 @@ session.on('localSettings', (settings) => {
216217
added: v8.4.0
217218
-->
218219

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

223225
```js
224226
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.