0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

New routing

Ultimately few things change, it's mostly just a nicer syntax and
slightly different expectations. The name of the value `dispatch`
did not change, because the previous dispatch values will now fail
if the code is not updated to using `cowboy_router:compile/1`.

No constraints have been implemented in this commit.
This commit is contained in:
Loïc Hoguin 2013-01-28 16:53:09 +01:00
parent 68da864aeb
commit a357c49d1b
6 changed files with 266 additions and 91 deletions

View file

@ -61,8 +61,6 @@ environment values to perform.
Routing middleware
------------------
@todo Routing middleware value is renamed very soon.
The routing middleware requires the `dispatch` value. If routing
succeeds, it will put the handler name and options in the `handler`
and `handler_opts` values of the environment, respectively.