http2stream.close(code[, callback])
code<number> 标识错误代码的无符号 32 位整数。 默认值:http2.constants.NGHTTP2_NO_ERROR(0x00)。callback<Function> 注册了可选函数来监听'close'事件。
通过向连接的 HTTP/2 对等体发送 RST_STREAM 帧来关闭 Http2Stream 实例。
code<number> Unsigned 32-bit integer identifying the error code. Default:http2.constants.NGHTTP2_NO_ERROR(0x00).callback<Function> An optional function registered to listen for the'close'event.
Closes the Http2Stream instance by sending an RST_STREAM frame to the
connected HTTP/2 peer.