diff options
author | Loïc Hoguin <[email protected]> | 2025-02-10 11:24:45 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2025-02-10 11:24:45 +0100 |
commit | 971684788d991d98fc86e84d061a52809df76e2b (patch) | |
tree | e27a965627d82dfea176fbaf10176c63066637db /doc/src/guide/req.asciidoc | |
parent | 72b57a846dbacf7ea886b303c680c683a2acec5d (diff) | |
download | cowboy-971684788d991d98fc86e84d061a52809df76e2b.tar.gz cowboy-971684788d991d98fc86e84d061a52809df76e2b.tar.bz2 cowboy-971684788d991d98fc86e84d061a52809df76e2b.zip |
Clarify that reverse/format_error constraint ops are experimental
Diffstat (limited to 'doc/src/guide/req.asciidoc')
-rw-r--r-- | doc/src/guide/req.asciidoc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/src/guide/req.asciidoc b/doc/src/guide/req.asciidoc index 754e470..6b95228 100644 --- a/doc/src/guide/req.asciidoc +++ b/doc/src/guide/req.asciidoc @@ -258,7 +258,8 @@ contain two parameters of name `key`. The same is true when trying to use the PHP-style suffix `[]`. When a query string is `key[]=1&key[]=2`, the list returned will -contain two parameters of name `key[]`. +contain two parameters of name `key[]`. Cowboy does not require +the `[]` suffix to properly handle repeated key names. When a query string is simply `key`, Cowboy will return the list `[{<<"key">>, true}]`, using `true` to indicate that the @@ -291,9 +292,11 @@ If no default is provided and the value is missing, the query string is deemed invalid and the process will crash. When the query string is `key=1&key=2`, the value for `key` -will be the list `[1, 2]`. Parameter names do not need to -include the PHP-style suffix. Constraints may be used to -ensure that only one value was passed through. +will be the list `[<<"1">>, <<"2">>]`. Parameter names do not +need to include the PHP-style suffix. Constraints may be used +to ensure that only one value was given. Constraints do not +automatically look inside the list, a custom constraint must +be written if that is necessary. === Headers |