From 162fb421b6a7c2d47ad5fe6fa753b302597056ac Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Tue, 28 Mar 2023 18:46:28 +0800 Subject: [PATCH] fixed bd0c9c6 from https://gitee.com/esterzhou/docs/pulls/16618 Update doc (16334) Signed-off-by: ester.zhou --- .../reference/apis/js-apis-request.md | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-request.md b/en/application-dev/reference/apis/js-apis-request.md index 0ee58f7502..6c33f4977a 100644 --- a/en/application-dev/reference/apis/js-apis-request.md +++ b/en/application-dev/reference/apis/js-apis-request.md @@ -16,26 +16,9 @@ import request from '@ohos.request'; ## Constraints - -HTTPS is supported by default in the FA model. To support HTTP, add **network** to the **config.json** file and set the **cleartextTraffic** attribute to **true**. - -```js -var config = { - "deviceConfig": { - "default": { - "network": { - "cleartextTraffic": true - } - //... - } - } -} -``` - -The **cleartextTraffic** attribute is not involved during application development in the stage model. - The download server must support the HTTP HEAD method so that the size of the data to download can be obtained through **Content-length**. Otherwise, the download task fails. If this is the case, you can check the failure cause through [on('fail')7+](#onfail7). +Only HTTP requests are supported. HTTPS requests are not supported. ## Constants -- GitLab