Phoenix with Cowboy 2.0

So I just noticed Phoenix uses Cowboy 1.0 while version 2.0 already exists. I’m wondering if there are plans to migrate Phoenix to Cowboy 2.0? Does anyone know if it works nicely with this new version?

2 Likes

I don’t think cowboy 2.0 is out yet. From [0]

Cowboy 2.0 will be released once all the breaking changes are completed and the temporarily removed features are added back.

There are examples on github [1] on how to use phoenix with cowboy 2.0-pre though.

[0] Nine Nines: Cowboy 2.0 pre-release 4
[1] GitHub - VoiceLayer/phoenix_cowboy2_example: An example of using phoenix with cowboy 2

1 Like

Ah, I was reading Cowboy 2.0 docs so I thought it had already been released.

It’s released https://github.com/ninenines/cowboy/releases/tag/2.0.0 :tada:

6 Likes

For those interested in Phoenix support for Cowboy 2.0, you should likely follow this Github thread: https://github.com/elixir-plug/plug/issues/599

9 Likes