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

13 commits

Author SHA1 Message Date
Loïc Hoguin
903594bb87 Update copyright years 2014-02-06 19:57:23 +01:00
Danielle Sucher
37e98f019d Clarify error msg for route lacking starting slash 2013-11-08 22:56:09 +01:00
Egobrain
3bf5b46786 Removed asserts from unit tests 2013-04-26 17:08:53 +04:00
Tristan Sloughter
1372c13034 add iolist support to route_match 2013-03-24 20:42:40 -05:00
Loïc Hoguin
23b3b038e9 Fix cowboy_router types 2013-03-02 00:02:05 +01:00
Loïc Hoguin
02ed254daa Fix an incorrect comment in cowboy_router 2013-02-27 12:40:24 +01:00
Vladimir Dronnikov
05a7fe0e2b Do not transform URIs to Unicode 2013-01-25 02:36:05 +00:00
Loïc Hoguin
5d8c29ff0f If a binding is reused, we check that values are identical
This is more for consistency than anything.
2013-01-29 00:57:26 +01:00
Loïc Hoguin
c2c333de8a Add the 'function' constraint 2013-01-28 23:39:21 +01:00
Loïc Hoguin
a5a69353f1 Add the 'int' constraint 2013-01-28 19:56:42 +01:00
Loïc Hoguin
a357c49d1b 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.
2013-01-28 16:53:09 +01:00
Loïc Hoguin
68da864aeb Remove cowboy_dispatcher
Types and code are moved to cowboy_router. The match/3 export
from cowboy_dispatcher isn't available anymore as it is called
internally.
2013-01-22 18:26:19 +01:00
Loïc Hoguin
1b3f510b7e Add middleware support
Middlewares allow customizing the request processing.

All existing Cowboy project are incompatible with this commit.
You need to change `{dispatch, Dispatch}` in the protocol options
to `{env, [{dispatch, Dispatch}]}` to fix your code.
2013-01-03 22:47:51 +01:00