This could be featured a bit more prominently, but you can find an example of how to start things on the child_spec/1 function: Plug.Cowboy — Plug.Cowboy v2.9.0
There’s not much more to know as you can e.g see here: mix_install_examples/plug_cowboy.exs at main · wojtekmach/mix_install_examples · GitHub
Generally I’d however suggest skipping cowboy alltogether and use bandit as an elixir dev. It’s written in elixir and specifically for plug. Cowboys erlang documentation is basically useless for the use with plug, as it’s not written for plug. You need plug_cowboy to translate between plug and cowboy.






















