docs: use separate options for string and buffer body (#5291)
This commit is contained in:
parent
d8e0834562
commit
1c65b592d0
|
|
@ -154,10 +154,23 @@ Response headers. Header values will be converted to a string.
|
||||||
If set, equals to setting `Content-Type` response header.
|
If set, equals to setting `Content-Type` response header.
|
||||||
|
|
||||||
### option: Route.fulfill.body
|
### option: Route.fulfill.body
|
||||||
|
* langs: js, python
|
||||||
- `body` <[string]|[Buffer]>
|
- `body` <[string]|[Buffer]>
|
||||||
|
|
||||||
Response body.
|
Response body.
|
||||||
|
|
||||||
|
### option: Route.fulfill.body
|
||||||
|
* langs: csharp, java
|
||||||
|
- `body` <[string]>
|
||||||
|
|
||||||
|
Optional response body as text.
|
||||||
|
|
||||||
|
### option: Route.fulfill.bodyBytes
|
||||||
|
* langs: csharp, java
|
||||||
|
- `bodyBytes` <[Buffer]>
|
||||||
|
|
||||||
|
Optional response body as raw bytes.
|
||||||
|
|
||||||
### option: Route.fulfill.path
|
### option: Route.fulfill.path
|
||||||
- `path` <[path]>
|
- `path` <[path]>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue