mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 14:06:17 -04:00
docs: Various updates since 2.5.2 that got missed (#274)
* docs: Various updates since 2.5.2 that got missed * Cleanup protocols global options * Sort caddyfile placeholder shortcuts alphabetically for now
This commit is contained in:
parent
6e7cc49915
commit
af47d0574b
14 changed files with 267 additions and 79 deletions
|
@ -19,8 +19,11 @@ respond [<matcher>] <status>|<body> [<status>] {
|
|||
```
|
||||
|
||||
- **<status>** is the HTTP status code to write. If 103 (Early Hints), the response will be written without a body and the handler chain will continue. (HTTP 1xx responses are informational, not final.) Default: 200.
|
||||
|
||||
- **<body>** is the response body to write.
|
||||
|
||||
- **body** is an alternate way to provide a body; convenient if it is multiple lines.
|
||||
|
||||
- **close** will close the client's connection to the server after writing the response.
|
||||
|
||||
To clarify, the first non-matcher argument can be either a 3-digit status code or a response body string. If it is a body, the next argument can be the status code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue