Vulnerabilities | |||||
---|---|---|---|---|---|
Version | Suggest | Low | Medium | High | Critical |
2.7.2 | 0 | 0 | 0 | 0 | 0 |
2.7.1 | 0 | 0 | 0 | 0 | 0 |
2.7.0 | 0 | 0 | 0 | 0 | 0 |
2.6.2 | 0 | 0 | 0 | 0 | 0 |
2.6.1 | 0 | 0 | 0 | 0 | 0 |
2.6.0 | 0 | 0 | 0 | 0 | 0 |
2.5.2 | 0 | 0 | 0 | 0 | 0 |
2.5.1 | 0 | 0 | 0 | 0 | 0 |
2.5.0 | 0 | 0 | 0 | 0 | 0 |
2.4.1 | 0 | 0 | 0 | 0 | 0 |
2.4.0 | 0 | 0 | 0 | 0 | 0 |
2.3.0 | 0 | 0 | 0 | 0 | 0 |
2.2.2 | 0 | 0 | 0 | 0 | 0 |
2.2.1 | 0 | 0 | 0 | 0 | 0 |
2.2.0 | 0 | 0 | 0 | 0 | 0 |
2.1.3 | 0 | 0 | 0 | 0 | 0 |
2.1.2 | 0 | 0 | 0 | 0 | 0 |
2.1.1 | 0 | 0 | 0 | 0 | 0 |
2.1.0 | 0 | 0 | 0 | 0 | 0 |
2.0.2 | 0 | 0 | 0 | 0 | 0 |
2.0.1 | 0 | 0 | 0 | 0 | 0 |
2.0.0 | 0 | 0 | 0 | 0 | 0 |
1.0.0 | 0 | 0 | 0 | 0 | 0 |
2.7.2 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0A Plug Adapter for the Erlang Cowboy web server.
You can use plug_cowboy
in your project by adding the dependency:
def deps do
[
{:plug_cowboy, "~> 2.0"},
]
end
You can then start the adapter with:
Plug.Cowboy.http MyPlug, []
The Plug.Cowboy
module can be started as part of a supervision tree like so:
defmodule MyApp do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
{Plug.Cowboy, scheme: :http, plug: MyApp, port: 4040}
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: MyApp.Supervisor]
Supervisor.start_link(children, opts)
end
end
We welcome everyone to contribute to Plug.Cowboy and help us tackle existing issues!
CHANGELOG.md
when submitting a pull request.Plug.Cowboy source code is released under Apache License 2.0. Check the LICENSE file for more information.