From 1fc99e8d3b6e259c1757318e88555410310f796f Mon Sep 17 00:00:00 2001 From: shawn_he Date: Tue, 6 Sep 2022 17:43:21 +0800 Subject: [PATCH] update doc Signed-off-by: shawn_he --- en/application-dev/connectivity/http-request.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/en/application-dev/connectivity/http-request.md b/en/application-dev/connectivity/http-request.md index b43d196172..517063c007 100644 --- a/en/application-dev/connectivity/http-request.md +++ b/en/application-dev/connectivity/http-request.md @@ -10,6 +10,8 @@ The HTTP request function is mainly implemented by the HTTP module. To use related APIs, you must declare the **ohos.permission.INTERNET** permission. +For details about how to apply for permissions, see [Access Control Development](../security/accesstoken-guidelines.md). + The following table describes the related APIs. | API | Description | @@ -65,7 +67,7 @@ httpRequest.request( console.info('cookies:' + data.cookies); // 8+ } else { console.info('error:' + JSON.stringify(err)); - // Call the destroy() method to release resources after the call is complete. + // Call the destroy method to destroy the request if it is no longer needed. httpRequest.destroy(); } } -- GitLab