From 71dcf091c9e921415cddd4de66ef38b29dfb3d4a Mon Sep 17 00:00:00 2001 From: zengyuan Date: Fri, 1 Aug 2025 14:37:48 +0800 Subject: [PATCH] modify Signed-off-by: zengyuan Change-Id: I5f4330d4bf55e433637d3029e8e918619c157323 --- api/@ohos.net.http.d.ts | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/api/@ohos.net.http.d.ts b/api/@ohos.net.http.d.ts index fbb2c98006..ff12fa62f7 100644 --- a/api/@ohos.net.http.d.ts +++ b/api/@ohos.net.http.d.ts @@ -4379,11 +4379,21 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ delete(callback: AsyncCallback): void; + /** + * Disables a cache and deletes the data in it. + * @param { AsyncCallback } callback - the callback of delete. + * @syscap SystemCapability.Communication.NetStack + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + deleteWithCallback(callback: AsyncCallback): void; + /** * Disables a cache and deletes the data in it. * @returns { Promise } The promise returned by the delete. @@ -4403,10 +4413,26 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ delete(): Promise; + + /** + * Disables a cache and deletes the data in it. + * @returns { Promise } The promise returned by the delete. + * @syscap SystemCapability.Communication.NetStack + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + deleteReturnsPromise(): Promise; + + /** + * @since 20 + * @arkts 1.2 + */ + overload delete { deleteWithCallback, deleteReturnsPromise }; } } -- Gitee