Copyright © 2016-2019 Marc Worrell
Behaviours: cowboy_middleware.
Authors: Marc Worrell (marc@worrell.nl).
execute/2 | Cowboy middleware, route the new request. |
update_env/2 |
execute(Req, Env) -> {ok, Req, Env} | {stop, Req}
Cowboy middleware, route the new request. Continue with the cowmachine, requests a redirect or return a 400 on an unknown host.
update_env(Req::cowboy_req:req(), Env::cowboy_middleware:env()) -> cowboy_middleware:env()
Generated by EDoc