阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js http2session.destroy

      Node.js http2session.destroy([error][, code])

      新增于: v8.4.0

      • error < Error> An Error object if the Http2Session is being destroyed due to an error.
      • code < number> The HTTP/2 error code to send in the final GOAWAY frame. If unspecified, and error is not undefined, the default is INTERNAL_ERROR, otherwise defaults to NO_ERROR.

      Immediately terminates the Http2Session and the associated net.Socket or tls.TLSSocket.

      Once destroyed, the Http2Session will emit the ‘close’ event. If error is not undefined, an ‘error’ event will be emitted immediately before the ‘close’ event.

      If there are any remaining open Http2Streams associated with the Http2Session, those will also be destroyed.


      更多内容请参考:Node.js HTTP2,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录