[99s-extend] Proposal for Cowboy Routing

Thomas Allen thomas at oinksoft.com
Tue Nov 13 16:12:14 CET 2012


On Tue, Nov 13, 2012 at 03:41:35PM +0100, Loïc Hoguin wrote:
> Oh alright. Well they are equivalent URLs, so if you really need to
> redirect I would do so in the handler directly, or through a request
> hook.

I suppose this suggests my next question ... how would one accomplish
this right now in Cowboy? I hope I'm correct in assuming that this will
involve cowboy_dispatcher:match/3 in an onrequest fun, but I do not
understand how I will use match/3 with what I get from
cowboy_req:path/1.

Thomas



More information about the Extend mailing list