Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP2 protocol with playframewok

How can I do a Basic HTTP2 server in PlayFramework 2.X?

Currenly HTTP2 protocol is implementable in production?

like image 838
aloon Avatar asked Jan 11 '16 11:01

aloon


2 Answers

Things have changed since this was first answered and we've worked on implementing HTTP/2 in Akka HTTP since. Akka HTTP has become the default backend for Play in 2.6 so now it can be used.

Documentation: https://www.playframework.com/documentation/2.6.x/AkkaHttpServer#HTTP/2-support-(experimental)

Please note that as of writing this comment (early July 2017) support for HTTP/2 is still experimental, which means there's a few missing bits we know we need to implement (and are going to in the coming weeks; In the meantime, feedback from the community trying it out in the real world would be very valuable, thanks!)

like image 136
Konrad 'ktoso' Malawski Avatar answered Nov 09 '22 05:11

Konrad 'ktoso' Malawski


No, Play 2 does not yet support HTTP/2. Play uses akka, which does not have HTTP/2 support yet. See this bug: https://github.com/akka/akka/issues/16862

Also read this: https://groups.google.com/forum/#!topic/play-framework-dev/N4GaWYZ19-A

like image 42
mkurz Avatar answered Nov 09 '22 05:11

mkurz