Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Yury Semikhatsky1c65b592d0c6
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]>