Add additional example to the respond directive

This commit is contained in:
moritzdietz 2021-06-23 10:15:00 +02:00
parent 1ff5103c73
commit 68071ae098

View file

@ -49,3 +49,8 @@ respond /secret/* "Access denied" 403 {
close
}
```
To respond with a body containing double quotes, which would need escaping, you can make use of [backticks](/docs/caddyfile/concepts#tokens-and-quotes) to avoid escaping:
```caddy-d
respond `{"key": "value"}`
```