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