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> ATypedArray
orDataView
instance containing additional data to be carried within theGOAWAY
frame.
在不关闭 Http2Session
的情况下将 GOAWAY
帧传输到连接的对等方。
¥Transmits a GOAWAY
frame to the connected peer without shutting down the
Http2Session
.