I have seen example of using Plug.Cowboy in Elixir and it is fairly easy to create a simple app:
defmodule Helix.Application do
use Application
def start(_type, _args) do
children = [
{Plug.Cowboy,
scheme: :http,
plug: Hello.Router,
options: [
port: 8080,
compress: true,
]}
]
opts = [strategy: :one_for_one, name: Hello.Supervisor]
Supervisor.start_link(children, opts)
end
end
How would I start up Cowboy without Plug? Do I need to use this function here?
https://ninenines.eu/docs/en/cowboy/2.6/manual/cowboy.start_clear/
Thanks in advance.