mirror of
https://github.com/caddyserver/website.git
synced 2025-05-07 12:17:15 -04:00
Add additional example to the respond directive
This commit is contained in:
parent
1ff5103c73
commit
68071ae098
1 changed files with 5 additions and 0 deletions
|
@ -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"}`
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue