>  **NOTE**<br>The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> **NOTE**<br>The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>
## Modules to Import
## Modules to Import
...
@@ -15,9 +14,9 @@ import request from '@ohos.request';
...
@@ -15,9 +14,9 @@ import request from '@ohos.request';
## Constraints
## Constraints
-HTTPS is supported by default. To support HTTP, you need to add **network** to the **config.json** file and set the **cleartextTraffic** attribute to **true**.
HTTPS is supported by default. To support HTTP, you need to add **network** to the **config.json** file and set the **cleartextTraffic** attribute to **true**.
```
```
"deviceConfig": {
"deviceConfig": {
"default": {
"default": {
"network": {
"network": {
...
@@ -26,12 +25,12 @@ import request from '@ohos.request';
...
@@ -26,12 +25,12 @@ import request from '@ohos.request';
Subscribes to the **headerReceive** event, which is triggered when an HTTP response header is received. This API uses an asynchronous callback to return the result.
Subscribes to the **headerReceive** event, which is triggered when an HTTP response header is received. This API uses an asynchronous callback to return the result.