阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js http2 response.setTimeout

      Node.js http2 response.setTimeout(msecs[, callback])

      新增于: v8.4.0

      • msecs < number>
      • callback < Function>
      • Returns: < http2.Http2ServerResponse>

      Sets the Http2Stream’s timeout value to msecs. If a callback is provided, then it is added as a listener on the ‘timeout’ event on the response object.

      If no ‘timeout’ listener is added to the request, the response, or the server, then Http2Streams are destroyed when they time out. If a handler is assigned to the request, the response, or the server’s ‘timeout’ events, timed out sockets must be handled explicitly.


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


      目录
      本文目录
      目录