From d58321d403144ff6172c2f310375c334ea6d2579 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 16 Dec 2022 10:14:02 -0800 Subject: [PATCH] cherry-pick(#19527): docs: route.fetch.postData in java --- docs/src/api/class-route.md | 8 +++++++- docs/src/api/params.md | 8 -------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/docs/src/api/class-route.md b/docs/src/api/class-route.md index ffeb7387b3448..56b24d8686663 100644 --- a/docs/src/api/class-route.md +++ b/docs/src/api/class-route.md @@ -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 diff --git a/docs/src/api/params.md b/docs/src/api/params.md index 3179780161015..3b11691d6d302 100644 --- a/docs/src/api/params.md +++ b/docs/src/api/params.md @@ -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]>