http2session.goaway([code[, lastStreamID[, opaqueData]]])
-
code<number> HTTP/2 错误代码¥
code<number> An HTTP/2 error code -
lastStreamID<number> 最后处理的Http2Stream的数字 ID¥
lastStreamID<number> The numeric ID of the last processedHttp2Stream -
opaqueData<Buffer> | <TypedArray> | <DataView>TypedArray或DataView实例,包含要在GOAWAY帧中携带的附加数据。¥
opaqueData<Buffer> | <TypedArray> | <DataView> ATypedArrayorDataViewinstance containing additional data to be carried within theGOAWAYframe.
在不关闭 Http2Session 的情况下将 GOAWAY 帧传输到连接的对等方。
¥Transmits a GOAWAY frame to the connected peer without shutting down the
Http2Session.