docs: use separate options for string and buffer body (#5291)

This commit is contained in:
Yury Semikhatsky 2021-02-03 14:56:17 -08:00 committed by GitHub
parent d8e0834562
commit 1c65b592d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,10 +154,23 @@ Response headers. Header values will be converted to a string.
If set, equals to setting `Content-Type` response header.
### option: Route.fulfill.body
* langs: js, python
- `body` <[string]|[Buffer]>
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
- `path` <[path]>