HTTP/2 on Kestrel
ASP.NET Core has supported HTTP/2 on Kestrel since version 2.2.0, and it is enabled by default if you are using HTTPS. In addition, another HTTP/2 requirement is support for the Application-Layer Protocol Negotiation (ALPN) protocol. The ALPN protocol enhances the handshake process between a client and a server: the client lists all the supported protocols, and the server will confirm which protocol to use for the HTTP transfer. Moreover, this approach allows an eventual fallback to HTTP 1.1 if the client or the server doesn't support HTTP/2.
As the default configuration, both HTTP 1.1 and HTTP/2 run on the same binding, but it is possible to customize and create a dedicated binding for HTTP/2 by extending the Kestrel configuration ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access