Skip to content

Commit

Permalink
docs: use separate options for string and buffer body (#5291)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Feb 3, 2021
1 parent d8e0834 commit 1c65b59
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/src/api/class-route.md
Expand Up @@ -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]>

Expand Down

0 comments on commit 1c65b59

Please sign in to comment.