From 03b154418e3055dfc975d8346bff622d4a25c84a Mon Sep 17 00:00:00 2001 From: liujinwei Date: Sun, 6 Mar 2022 22:30:17 +0800 Subject: [PATCH] change name of response Signed-off-by: liujinwei Change-Id: I03640ecb3b6cbb8fbe427d7a9221d9a9abf361b9 --- api/@internal/component/ets/web.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 0d3bc0180c..8efebc0263 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -266,7 +266,7 @@ declare class WebResourceRequest { * @return Return the data. * @since 8 */ - getData(): string; + getResponseData(): string; /** * Get the encoding. @@ -274,7 +274,7 @@ declare class WebResourceRequest { * @return Return the encoding. * @since 8 */ - getEncoding(): string; + getResponseEncoding(): string; /** * Get the mime type. @@ -282,7 +282,7 @@ declare class WebResourceRequest { * @return Return the mime type. * @since 8 */ - getMimeType(): string; + getResponseMimeType(): string; /** * Get the reason phrase. @@ -290,14 +290,14 @@ declare class WebResourceRequest { * @return Return the reason phrase. * @since 8 */ - getReasonPhrase(): string; + getReasonMessage(): string; /** * Get the headers. * @return Return the headers. * @since 8 */ - getResponseHeaders() : Map; + getResponseHeader() : Map; /** * Get the status code. @@ -305,7 +305,7 @@ declare class WebResourceRequest { * @return Return the status code. * @since 8 */ - getStatusCode(): number; + getResponseCode(): number; } /** -- Gitee