Skip to content

Commit

Permalink
cherry-pick(#19527): docs: route.fetch.postData in java (#19528)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Dec 16, 2022
1 parent 5c3be30 commit 0cf3ec2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 7 additions & 1 deletion docs/src/api/class-route.md
Expand Up @@ -480,8 +480,14 @@ If set changes the request URL. New URL must have same protocol as original one.

If set changes the request method (e.g. GET or POST).

### option: Route.fetch.postData = %%-js-python-csharp-fetch-option-post-data-%%
### option: Route.fetch.postData
* langs: js, python, java
* since: v1.29
- `postData` <[string]|[Buffer]|[Serializable]>

Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type` header will be
set to `application/octet-stream` if not explicitly set.

### option: Route.fetch.postData
* since: v1.29
Expand Down
8 changes: 0 additions & 8 deletions docs/src/api/params.md
Expand Up @@ -389,14 +389,6 @@ Allows to set post data of the request. If the data parameter is an object, it w
and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type` header will be
set to `application/octet-stream` if not explicitly set.

## js-python-csharp-fetch-option-post-data
* langs: js, python, csharp
- `postData` <[string]|[Buffer]|[Serializable]>

Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type` header will be
set to `application/octet-stream` if not explicitly set.

## js-python-csharp-fetch-option-ignorehttpserrors
* langs: js, python, csharp
- `ignoreHTTPSErrors` <[boolean]>
Expand Down

0 comments on commit 0cf3ec2

Please sign in to comment.