Can Akka-HTTP do HTTP/2.0?
Asked Answered
A

3

6

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.

Astrograph answered 29/7, 2016 at 20:1 Comment(4)
AFAIK Akka http is not yet compliant with HTTP/2.0.Wartow
recently akka-http2-support has appeared on master branch of akka-http project github.com/akka/akka-http . Seems soon it will be available.Wolff
It does support http2 doc.akka.io/docs/akka-http/current/…Bulgarian
@Bulgarian The link you provide says "(not yet surfaced in user API)". Akka-http 10.0.5 does not yet support HTTP/2 github.com/akka/akka-http/issues/244Gunter
A
4

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

Agna answered 16/10, 2018 at 18:21 Comment(1)
Why is it still in preview mode 2.5 years later?Kirstenkirsteni
G
1

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

Gunter answered 24/3, 2017 at 11:14 Comment(1)
Update: "For reference, people interested in tracking progress and helping out should track this tag on github: github.com/akka/akka-http/labels/t%3Ahttp2 " (from github.com/akka/akka-http/issues/111 )Gunter
M
1

Akka-http 10.1.1 supports server-side HTTP/2 in preview mode (HTTPS only): https://doc.akka.io/docs/akka-http/current/server-side/http2.html

@akauppi's link still shows many features are still in progress (including client side support)

Client http/2 support appears rare among all Scala libraries currently - checkout (for both client and server side http/2): https://github.com/criteo/lolhttp

Mellie answered 24/4, 2018 at 13:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.