From 3fb05bf418d67371a0e086d9eb47eec3ac8f73f2 Mon Sep 17 00:00:00 2001 From: Yangys Date: Tue, 30 May 2023 02:13:55 +0000 Subject: [PATCH] update zh-cn/application-dev/connectivity/http-request.md. Signed-off-by: Yangys --- zh-cn/application-dev/connectivity/http-request.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zh-cn/application-dev/connectivity/http-request.md b/zh-cn/application-dev/connectivity/http-request.md index ff59559ef3..ec495f6b55 100644 --- a/zh-cn/application-dev/connectivity/http-request.md +++ b/zh-cn/application-dev/connectivity/http-request.md @@ -70,6 +70,8 @@ httpRequest.request( // data.header为HTTP响应头,可根据业务需要进行解析 console.info('header:' + JSON.stringify(data.header)); console.info('cookies:' + JSON.stringify(data.cookies)); // 8+ + // 当该请求使用完毕时,调用destroy方法主动销毁 + httpRequest.destroy(); } else { console.info('error:' + JSON.stringify(err)); // 取消订阅HTTP响应头事件 -- GitLab