settings
abstract fun settings(settings: Settings, callback: (JsError?, settings: Settings, duration: Double) -> Unit = definedExternally)(source)
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.
Since
v8.4.0
Parameters
callback
Callback that is called once the session is connected or right away if the session is already connected.