Node.js FAQ: Top Questions
24. What is HTTP/2 support in Node.js?
HTTP/2
support in Node.js, available via the
http2
module since Node.js 8.4, enables faster, more efficient web communication with features like multiplexing and server push.
- Features: Stream multiplexing, header compression, server push.
-
Module:
http2
, built-in, supports secure (HTTPS) and non-secure modes. - Requirements: TLS for browsers; self-signed certificates for testing.
- Use Case: High-performance APIs, modern web apps.