mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
matchers: Clarify header matcher syntax
This commit is contained in:
parent
f2cb7fef46
commit
63dfe5529a
1 changed files with 2 additions and 2 deletions
|
@ -397,7 +397,7 @@ Some more examples using [CEL expressions](#expression). Keep in mind that place
|
|||
### header
|
||||
|
||||
```caddy-d
|
||||
header <field> [<value>]
|
||||
header <field> [<value> ...]
|
||||
|
||||
expression header({'<field>': '<value>'})
|
||||
```
|
||||
|
@ -406,7 +406,7 @@ By request header fields.
|
|||
|
||||
- `<field>` is the name of the HTTP header field to check.
|
||||
- If prefixed with `!`, the field must not exist to match (omit value arg).
|
||||
- `<value>` is the value the field must have to match.
|
||||
- `<value>` is the value the field must have to match. One or more may be specified.
|
||||
- If prefixed with `*`, it performs a fast suffix match (appears at the end).
|
||||
- If suffixed with `*`, it performs a fast prefix match (appears at the start).
|
||||
- If enclosed by `*`, it performs a fast substring match (appears anywhere).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue