Node.js · Senior · Question 21 of 75
What does HTTP/2 change for a Node.js API used by browsers?
- ✓Correct answer: Many requests share one connection (multiplexing) with header compression; Node.js supports it via
node:http2 - 2It removes the need for TLS
- 3It replaces JSON with a binary format automatically
Explanation
Browsers use HTTP/2 only over TLS. In practice TLS and HTTP/2 often terminate at a proxy or CDN, which talks HTTP/1.1 to Node.js.