server.updateSettings([settings])


  • settings HTTP/2 设置对象

用于使用提供的设置更新服务器。

【Used to update the server with the provided settings.】

对于无效的 settings 值,会抛出 ERR_HTTP2_INVALID_SETTING_VALUE

【Throws ERR_HTTP2_INVALID_SETTING_VALUE for invalid settings values.】

对于无效的 settings 参数会抛出 ERR_INVALID_ARG_TYPE

【Throws ERR_INVALID_ARG_TYPE for invalid settings argument.】