Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Akka-HTTP do HTTP/2.0?

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.

like image 776
Ehud Kaldor Avatar asked Jul 29 '16 20:07

Ehud Kaldor


People also ask

Does HTTP support HTTP2?

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.

How can I tell if HTTP2 is supported?

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.

How do I change HTTP to HTTP2?

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.


2 Answers

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

like image 111
Ismail H Avatar answered Sep 20 '22 07:09

Ismail H


Akka-http 10.0.5 does not support HTTP/2, yet. You can track the work here.

like image 44
akauppi Avatar answered Sep 22 '22 07:09

akauppi