A plug adapter for cowboy 2
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib/plug_cowboy2
.gitignore
README.md
mix.exs
mix.lock

README.md

PlugCowboy2

This is an adapter for Cowboy 2 based off of the work on @potatosalad's fork available at https://github.com/potatosalad/plug/tree/cowboy2

Installation

  1. Add plug_cowboy2 to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:plug_cowboy2, github: "voicelayer/plug_cowboy2"}]
end
```
  1. Ensure plug_cowboy2 is started before your application:
```elixir
def application do
  [applications: [:plug_cowboy2]]
end
```

Sample Application

Plug

A sample application with plug is available at https://github.com/voicelayer/plug_cowboy2_example

Phoenix

In order to use Phoenix, the [phoenix_cowboy2] (https://github.com/voicelayer/phoenix_cowboy2) application is required.

A sample application with plug is available at https://github.com/voicelayer/phoenix_cowboy2_example