sounds like a straightforward question, but i cannot find the answer (probably because the '2.0' is interpreted as Akka's version when searching for 'how to do HTTP/2.0 with Akka-HTTP').
it seems like akka-http does have a construct for HttpProtocols, but it only has HTTP 1.0 and HTTP 1.1.
HTTP/2 is only supported over TLS (HTTPS). See also the precursor of HTTP/2, the SPDY protocol, which has been deprecated and removed from most browsers, in favor of HTTP/2. 1 Partial support in Internet Explorer refers to being limited to Windows 10.
Google Chrome offers a quick and easy way to check if HTTP/2 is supported on your SSL-enabled site. First, visit your site in Chrome over HTTPS. There you'll see your site listed with protocol h2, confirming your site works over HTTP/2.
Switching to HTTP/2 is a decision to made after analysing the browser version data of your user base. The HTTP/1.1 to HTTP/2 protocol conversion happens automatically and its backward compatible. So there is nothing pretty much to be done to switch it other than ensuring your server supports it.
The support is now official. Akka has a server side in preview mode for the moment :
https://doc.akka.io/docs/akka-http/current/server-side/http2.html
Akka-http 10.0.5 does not support HTTP/2, yet. You can track the work here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With