OvermindDL1
PhoenixFramework HTTP/2
I’ve been trying to see if Phoenix supports HTTP/2 but I am not able to see any hint of a sign of negotiation or how to PUSH data over HTTP/2? It would be nice if, say, the View’s could specify mandatory files to be pushed to the browser based on their knowledge of the templates for example. Is there something that I am missing?
Most Liked
hubertlepicki
OK, so the situation is as follows:
- Cowboy has just got support for HTTP/2. I do not think it’s complete nor stable at the moment.
- HTTP/2 in Elixir is going to be mainly handled by Plug.
- Plug may require some significant changes to support HTTP/2 fully
- Plug/Phoenix guys are waiting for the final/stable Cowboy’s implementation before they make any moves towards HTTP/2 support. Which is probably reasonable.
josevalim
Here is the relevant issue: HTTP/2 support · Issue #258 · elixir-plug/plug · GitHub
TL;DR - there are some developers exploring HTTP2 with Plug and Phoenix already (potatosalad is awesome). There are also production ready implementations of HTTP2 in Erlang (Chatterbox) beyond the one in Cowboy master. If you need HTTP2 and you cannot wait for Plug/Phoenix, then you can always use directly from Cowboy master or Chatterbox.
ChaseGilliam
Ok @aseigo here it is as promised, and only 4 weeks delayed
!
I pushed this out quickly because it had been sitting in my drafts for a few weeks, so let me know if anything seems off.








