阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js http2 异常处理

      Node.js http2 异常处理

      There are several types of error conditions that may arise when using the http2 module:

      Validation errors occur when an incorrect argument, option, or setting value is passed in. These will always be reported by a synchronous throw.

      State errors occur when an action is attempted at an incorrect time (for instance, attempting to send data on a stream after it has closed). These will be reported using either a synchronous throw or via an ‘error’ event on the Http2Stream, Http2Session or HTTP/2 Server objects, depending on where and when the error occurs.

      Internal errors occur when an HTTP/2 session fails unexpectedly. These will be reported via an ‘error’ event on the Http2Session or HTTP/2 Server objects.

      Protocol errors occur when various HTTP/2 protocol constraints are violated. These will be reported using either a synchronous throw or via an ‘error’ event on the Http2Stream, Http2Session or HTTP/2 Server objects, depending on where and when the error occurs.


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


      目录
      本文目录
      目录