Fixing a few issues in the examples in the README file.
For Bandit :port is not a top-level config. I see that in Plug.Cowboy there is a comment We support :options for backwards compatibility, so maybe the intent is to migrate away from :options? But this is still not supported in Bandit, so copy-pasting the example in iex leads to errors at the moment.
In the Plug.Cowboy example the Router module was missing.
Fix an unused parameter in the init/1 function in the Bandit+websocket example.
Fixing a few issues in the examples in the README file.
For Bandit
:port
is not a top-level config. I see that inPlug.Cowboy
there is a commentWe support :options for backwards compatibility
, so maybe the intent is to migrate away from:options
? But this is still not supported inBandit
, so copy-pasting the example iniex
leads to errors at the moment.In the
Plug.Cowboy
example theRouter
module was missing.Fix an unused parameter in the
init/1
function in the Bandit+websocket example.