阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js Http2SecureServer checkContinue 事件

      Node.js Http2SecureServer checkContinue 事件

      新增于: v8.5.0

      • request < http2.Http2ServerRequest>
      • response < http2.Http2ServerResponse>

      If a ‘request’ listener is registered or http2.createSecureServer() is supplied a callback function, the ‘checkContinue’ event is emitted each time a request with an HTTP Expect: 100-continue is received. If this event is not listened for, the server will automatically respond with a status 100 Continue as appropriate.

      Handling this event involves calling response.writeContinue() if the client should continue to send the request body, or generating an appropriate HTTP response (e.g. 400 Bad Request) if the client should not continue to send the request body.

      Note that when this event is emitted and handled, the ‘request’ event will not be emitted.


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


      目录
      本文目录
      目录