http2session.settings([settings][, callback])
settingsHTTP/2 设置对象callback<Function> 会话连接后调用的回调,如果会话已连接,则会立即调用。
更新此 Http2Session 的当前本地设置,并向已连接的 HTTP/2 对等端发送一个新的 SETTINGS 帧。
【Updates the current local settings for this Http2Session and sends a new
SETTINGS frame to the connected HTTP/2 peer.】
一旦被调用,当会话等待远程端确认新的设置时,http2session.pendingSettingsAck 属性将为 true。
【Once called, the http2session.pendingSettingsAck property will be true
while the session is waiting for the remote peer to acknowledge the new
settings.】
新的设置在接收到 SETTINGS 确认并触发 'localSettings' 事件之前不会生效。在确认仍在等待时,可以发送多个 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.】