Node.js v14.21.3 documentation


Table of contents

HTTP/2#

Stability: 2 - Stable

Source Code: lib/http2.js

The http2 module provides an implementation of the HTTP/2 protocol. It can be accessed using:

const http2 = require('http2');

Core 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.