MCPcopy Index your code
hub / github.com/nodejs/node / settings

Method settings

lib/internal/http2/core.js:1563–1582  ·  view source on GitHub ↗
(settings, callback)

Source from the content-addressed store, hash-verified

1561
1562 // Submits a SETTINGS frame to be sent to the remote peer.
1563 settings(settings, callback) {
1564 if (this.destroyed)
1565 throw new ERR_HTTP2_INVALID_SESSION();
1566 assertIsObject(settings, 'settings');
1567 validateSettings(settings);
1568
1569 if (callback) {
1570 validateFunction(callback, 'callback');
1571 }
1572 debugSessionObj(this, 'sending settings');
1573
1574 this[kState].pendingAck++;
1575
1576 const settingsFn = submitSettings.bind(this, { ...settings }, callback);
1577 if (this.connecting) {
1578 this.once('connect', settingsFn);
1579 return;
1580 }
1581 settingsFn();
1582 }
1583
1584 // Submits a GOAWAY frame to be sent to the remote peer. Note that this
1585 // is only a notification, and does not affect the usable state of the

Calls 3

debugSessionObjFunction · 0.85
bindMethod · 0.45
onceMethod · 0.45

Tested by

no test coverage detected