阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js HTTP2

      Node.js HTTP2

      版本历史

      版本变更
      v10.10.0HTTP/2 is now Stable. Previously, it had been Experimental.
      v8.4.0新增于: v8.4.0

      http2 模块提供了 HTTP/2 协议的实现。 使用方法如下:

      const http2 = require('http2');
      

      核心 API

      The Core API provides a low-level interface designed specifically around support for HTTP/2 protocol features. It is specifically not designed for compatibility with the existing HTTP/1 module API. However, the Compatibility API is.

      The http2 Core API is much more symmetric between client and server than the http API. For instance, most events, like ‘error’, ‘connect’ and ‘stream’, can be emitted either by client-side code or server-side code.

      目录
      本文目录
      目录