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

Add the 'int' constraint

This commit is contained in:
Loïc Hoguin 2013-01-28 19:56:42 +01:00
parent a357c49d1b
commit a5a69353f1
2 changed files with 59 additions and 10 deletions

View file

@ -196,8 +196,9 @@ Constraints
-----------
After the matching has completed, the resulting bindings can be tested
against a set of constraints. The match will succeed only if they all
succeed.
against a set of constraints. Constraints are only tested when the
binding is defined. They run in the order you defined them. The match
will succeed only if they all succeed.
They are always given as a two or three elements tuple, where the first
element is the name of the binding, the second element is the constraint's