method Http2Session.settings
Jump to headingHttp2Session.settings(): void
Updates the current local settings for this Http2Session
and sends a new SETTINGS
frame to the connected HTTP/2 peer.
Once called, the http2session.pendingSettingsAck
property will be true
while the session is waiting for the remote peer to acknowledge the new
settings.
The new settings will not become effective until the SETTINGS
acknowledgment
is received and the 'localSettings'
event is emitted. It is possible to send
multiple SETTINGS
frames while acknowledgment is still pending.
Parameters Jump to heading
Jump to headingsettings: Settings
optional
Jump to headingcallback: () => void
Callback that is called once the session is connected or right away if the session is already connected.
Return Type Jump to heading
void