From 1c65b592d0c6baaf15c3b30bedcf66c46d8016c9 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 3 Feb 2021 14:56:17 -0800 Subject: [PATCH] docs: use separate options for string and buffer body (#5291) --- docs/src/api/class-route.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/src/api/class-route.md b/docs/src/api/class-route.md index 4c098d8a04..745d8876d6 100644 --- a/docs/src/api/class-route.md +++ b/docs/src/api/class-route.md @@ -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]>