From efb13356c57c4c2da56715fb83a7a1bbe79a0fd2 Mon Sep 17 00:00:00 2001 From: oh_ci Date: Thu, 14 Aug 2025 15:37:01 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!1966=20?= =?UTF-8?q?:=20Refactoring=20of=20any&object=20in=20network=20services?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frameworks/ets/ani/http/ets/@ohos.net.http.ets | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frameworks/ets/ani/http/ets/@ohos.net.http.ets b/frameworks/ets/ani/http/ets/@ohos.net.http.ets index c3efff79b..1012d8f5d 100644 --- a/frameworks/ets/ani/http/ets/@ohos.net.http.ets +++ b/frameworks/ets/ani/http/ets/@ohos.net.http.ets @@ -16,7 +16,7 @@ import type { AsyncCallback, Callback } from '@ohos.base'; import type connection from '@ohos.net.connection'; -import { BusinessError, RecordData } from '@ohos.base'; +import { BusinessError } from '@ohos.base'; export default namespace http { loadLibrary("http_ani") @@ -49,7 +49,7 @@ export default namespace http { export interface HttpRequestOptions { method?: RequestMethod; - extraData?: string | RecordData | ArrayBuffer; + extraData?: string | Object | ArrayBuffer; expectDataType?: HttpDataType; @@ -57,7 +57,7 @@ export default namespace http { priority?: int; - header?: Record; + header?: Object; readTimeout?: int; @@ -149,7 +149,7 @@ export default namespace http { remoteFileName?: string; - data?: string | RecordData | ArrayBuffer; + data?: string | Object | ArrayBuffer; filePath?: string; } @@ -447,13 +447,13 @@ export default namespace http { } export interface HttpResponse { - result: string | RecordData | ArrayBuffer; + result: string | Object | ArrayBuffer; resultType: HttpDataType; responseCode: ResponseCode | int; - header: Record; + header: Object; cookies: string; @@ -461,13 +461,13 @@ export default namespace http { } class HttpResponseInner implements HttpResponse { - result: string | RecordData | ArrayBuffer; + result: string | Object | ArrayBuffer; resultType: HttpDataType; responseCode: ResponseCode | int; - header: Record; + header: Object; cookies: string; -- Gitee