talira

Plug.Cowboy

Run Plug and Phoenix apps on the Cowboy web server

open sourceApache-2.0free

Plug.Cowboy (the Hex package plug_cowboy) is the adapter that runs an Elixir Plug application on the Erlang Cowboy web server. Add it to a project's dependencies and start it with Plug.Cowboy.http MyPlug, [], or put it in an application's supervision tree as a child spec. It's maintained in the elixir-plug organization alongside Plug itself, under the Apache 2.0 licence.

Problems it solves

  • run my Elixir Plug app on an HTTP server
  • serve a Phoenix application with Cowboy
  • start an HTTP server inside my Elixir application's supervision tree

Features

  • serve a Plug or Phoenix application with the Cowboy web server
  • start it directly with Plug.Cowboy.http or under a supervision tree
  • Hex package plug_cowboy

Alternatives

The same job

These do what Plug.Cowboy does.

  1. Bandit A pure-Elixir HTTP server built for Plug and WebSock apps

Compare Plug.Cowboy with the top 3