mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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.
|
||||
|
||||
### 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]>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user