diff --git a/frameworks/ets/ani/http/ets/@ohos.net.http.ets b/frameworks/ets/ani/http/ets/@ohos.net.http.ets index c3efff79baed5cc88c20d1ff68cfe038731199d6..1012d8f5d118338566b031a4b1b46d94540f8062 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;