mirror of
https://github.com/caddyserver/website.git
synced 2025-06-13 17:55:23 -04:00
Add documentation for empty query match (#473)
This commit is contained in:
parent
78c23bf7e2
commit
3bc9fdade8
1 changed files with 2 additions and 1 deletions
|
@ -776,12 +776,13 @@ With a [CEL expression](#expression):
|
|||
|
||||
```caddy-d
|
||||
query <key>=<val>...
|
||||
query ""
|
||||
|
||||
expression query({'<key>': '<val>'})
|
||||
expression query({'<key>': ['<vals...>']})
|
||||
```
|
||||
|
||||
By query string parameters. Should be a sequence of `key=value` pairs. Keys are matched exactly (case-sensitively) but also support `*` to match any value. Values can use placeholders.
|
||||
By query string parameters. Should be a sequence of `key=value` pairs, or an empty string "". Keys are matched exactly (case-sensitively) but also support `*` to match any value. Values can use placeholders. Empty string matches http requests with no query parameters.
|
||||
|
||||
There can be multiple `query` matchers per named matcher, and pairs with the same keys will be OR'ed together. Different keys will be AND'ed together. So, all keys in the matcher must have at least one matching value.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue