diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index eba8d735d8b74d80ed9e5768f720a8041bde501f..254c1188c339b79bcf91de070c557400f0f582bc 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -225,10 +225,10 @@ declare class WebResourceRequest { /** * Get request headers. * - * @return Return a map of the request headers + * @return Return the request headers * @since 8 */ - getRequestHeader(): Map; + getRequestHeader(): Array
; /** * Get the request url. @@ -312,7 +312,7 @@ declare class WebResourceRequest { * @return Return the response headers. * @since 8 */ - getResponseHeader() : Map; + getResponseHeader() : Array
; /** * Get the response code. @@ -323,6 +323,26 @@ declare class WebResourceRequest { getResponseCode(): number; } +/** + * Defines the web resource header. + * @since 8 + */ + declare interface Header { + /** + * Get the key of the web header. + * + * @since 8 + */ + headerKey: string; + + /** + * Get the value of the web header. + * + * @since 8 + */ + headerValue: string; +} + /** * Defines the web resource error. * @since 8