Module cowmachine_proxy

Middleware to update proxy settings in the Cowboy Req.

Copyright © 2016-2019 Marc Worrell

Behaviours: cowboy_middleware.

Authors: Marc Worrell (marc@worrell.nl).

Description

Middleware to update proxy settings in the Cowboy Req

Function Index

execute/2Cowboy middleware, route the new request.
update_env/2

Function Details

execute/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/2

update_env(Req::cowboy_req:req(), Env::cowboy_middleware:env()) -> cowboy_middleware:env()


Generated by EDoc