阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js http2 response.end

      Node.js http2 response.end([data][, encoding][, callback])

      版本历史

      版本变更
      v10.0.0This method now returns a reference to ServerResponse.
      v8.4.0新增于: v8.4.0
      • data < string> | < Buffer>
      • encoding < string>
      • callback < Function>
      • Returns: < this>

      This method signals to the server that all of the response headers and body have been sent; that server should consider this message complete. The method, response.end(), MUST be called on each response.

      If data is specified, it is equivalent to calling response.write(data, encoding) followed by response.end(callback).

      If callback is specified, it will be called when the response stream is finished.


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


      目录
      本文目录
      目录