mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: A few fixes, one more example (#164)
- Change wildcard certs patterns from h3 to h2 header - Clean up `encode.md` a bit - Add TOC entry for `handle_response` - Add response matcher docs for `handle_response` (copied from `encode.md`) - Add example for `handle_response` for handling by status code
This commit is contained in:
parent
25742214dc
commit
9b4599eec9
3 changed files with 33 additions and 4 deletions
|
@ -30,7 +30,7 @@ encode [<matcher>] <formats...> {
|
|||
- **gzip** enables Gzip compression, optionally at the specified level.
|
||||
- **zstd** enables Zstandard compression.
|
||||
- **minimum_length** the minimum number of bytes a response should have to be encoded (default: 512).
|
||||
- **match** is a [Response matcher](#responsematcher). Only matching Responses are encoded. The default looks like this:
|
||||
- **match** is a [response matcher](#response-matcher). Only matching responses are encoded. The default looks like this:
|
||||
|
||||
```caddy-d
|
||||
match {
|
||||
|
@ -60,7 +60,7 @@ By HTTP status code.
|
|||
|
||||
### header
|
||||
|
||||
See Request matcher [header](/docs/caddyfile/matchers#header).
|
||||
See the [header](/docs/caddyfile/matchers#header) request matcher for the supported syntax.
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue