This is a handler for Cowboy 2 based off of the work on @potatosalad's fork available at https://github.com/potatosalad/phoenix/tree/cowboy2
- Add
phoenix_cowboy2
to your list of dependencies inmix.exs
:
```elixir
def deps do
[{:phoenix_cowboy2, github: "voicelayer/phoenix_cowboy2"}]
end
```
- Ensure
phoenix_cowboy2
is started before your application:
```elixir
def application do
[applications: [:phoenix_cowboy2]]
end
```
A sample application with plug is available at https://github.com/voicelayer/phoenix_cowboy2_example