extend/cowboy — pull request #221 by RoadRunnr (2012-05-10 15:43:17+00:00)
Title: dynamic request dispatching

Instead of a static path to handler mapping, requests can be passed to fun that returns the handler information. The fun has the option to modify the request path information, leaving on the part the handler is supposed to see.

This is mostly usefull when the dispatch rules are highly dynamic or very complex.

set_protocol_option/2 and long dispatch rules can basicly archive the same effect, but sometimes a more dynamic dispatching is wanted, e.g. an external API registration mapping to URLs, on the fly URL rewriting, ....