June 2025
Intermediate to advanced
837 pages
24h 50m
English
Since version 8.4, the http2 module is shipped with Node.js and supports the new protocol version for both the server and the client. The handling is slightly different from the http module. Furthermore, HTTP/2 provides some interesting additional features. First, HTTP/2 should no longer be used in the unencrypted version. Originally, it was planned that HTTP/2 should only exist in an encrypted variant, but the standardization consortium didn’t come to a uniform solution here, so HTTP/2 can be used both encrypted and unencrypted. However, because most browser developers now display warnings for unsecured connections, this shouldn’t be an option for you.
The interface of the http2 module is slightly different ...
Read now
Unlock full access