diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index 283d7bef593de0ab92675dd186438e86a124b014..ea1121b4d85a7db374383f31e5721178f524d564 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -29,7 +29,7 @@ declare namespace connection { type UDPSocket = socket.UDPSocket; /** - * Create a network connection with optional netSpefifier and timeout. + * Create a network connection with optional netSpecifier and timeout. * * @param netSpecifier Indicates the network specifier. See {@link NetSpecifier}. * @param timeout The time in milliseconds to attempt looking for a suitable network before @@ -52,7 +52,7 @@ declare namespace connection { * *

To call this method, you must have the {@code ohos.permission.GET_NETWORK_INFO} permission. * - * @return Returns the {@link NetHandle} object; + * @returns Returns the {@link NetHandle} object; * returns {@code null} if the default network is not activated. * @permission ohos.permission.GET_NETWORK_INFO * @since 9 @@ -212,7 +212,7 @@ declare namespace connection { * Resolves a host name to obtain the first IP address based on the specified NetHandle. * * @param host Indicates the host name or the domain. - * @return Returns the first NetAddress. + * @param callback Returns the first NetAddress. * @permission ohos.permission.GET_NETWORK_INFO */ getAddressByName(host: string, callback: AsyncCallback): void; diff --git a/api/@ohos.net.ethernet.d.ts b/api/@ohos.net.ethernet.d.ts index b1a3e6a33ff591c8f0a9c9dc197df260b939925d..12ea7797b2a74f025953a49eec609533eb81b314 100644 --- a/api/@ohos.net.ethernet.d.ts +++ b/api/@ohos.net.ethernet.d.ts @@ -19,7 +19,7 @@ import {AsyncCallback, Callback} from "./basic"; * Provides interfaces to manage ethernet. * * @since 9 - * @syscap SystemCapability.Communication.NetManager.Ethernet + * @syscap SystemCapability.Communication.NetManager.Extension */ declare namespace ethernet { /** diff --git a/api/@ohos.net.http.d.ts b/api/@ohos.net.http.d.ts index ce56e5554957fe12ba729defb9f8c3e8ae6abfaa..88537cab5304ecb8074a99c6f651fd2cbc7cfac8 100644 --- a/api/@ohos.net.http.d.ts +++ b/api/@ohos.net.http.d.ts @@ -98,14 +98,16 @@ declare namespace http { /** * Registers an observer for HTTP Response Header events. * - * @deprecated use on_headersReceive instead since 8. + * @deprecated since 8 + * @useinstead on_headersReceive */ on(type: "headerReceive", callback: AsyncCallback): void; /** * Unregisters the observer for HTTP Response Header events. * - * @deprecated use off_headersReceive instead since 8. + * @deprecated since 8 + * @useinstead off_headersReceive */ off(type: "headerReceive", callback?: AsyncCallback): void; diff --git a/api/@ohos.net.socket.d.ts b/api/@ohos.net.socket.d.ts index 1f6d090abdb7f37020ea51cea687dfe455b23727..aceaa13962cea1cc3cbabc0fbcdea02013f93340 100644 --- a/api/@ohos.net.socket.d.ts +++ b/api/@ohos.net.socket.d.ts @@ -442,8 +442,7 @@ declare namespace socket { /** * Returns an object representing the peer certificate. If the peer does not provide a certificate, * an empty object will be returned. If the socket is destroyed, null is returned. - * If needChain is true, it contains the complete certificate chain. Otherwise, - * it only contains the peer's certificate. + * It only contains the peer's certificate. * * @throws {BusinessError} 2303501 - SSL is null. * @throws {BusinessError} 2300002 - System internal error. @@ -464,8 +463,8 @@ declare namespace socket { getProtocol(): Promise; /** - * Returns an object containing the negotiated cipher suite information. - * For example:{"name": "AES128-SHA256", "standardName": "TLS_RSA_WITH_AES_128_CBC_SHA256", "version": "TLSv1.2"} + * Returns a list containing the negotiated cipher suite information. + * For example:{"TLS_RSA_WITH_AES_128_CBC_SHA256", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"} * * @throws {BusinessError} 2303501 - SSL is null. * @throws {BusinessError} 2303502 - Error in tls reading. @@ -545,12 +544,12 @@ declare namespace socket { /** * Certificate proving the identity of the client */ - cert: string; + cert?: string; /** * Private key of client certificate */ - key: string; + key?: string; /** * Password of the private key @@ -568,7 +567,7 @@ declare namespace socket { useRemoteCipherPrefer?: boolean; /** - * Supported signature algorithms. This list can contain summary algorithms(SHA256、MD5、etc)、 + * Supported signature algorithms. This string can contain summary algorithms(SHA256、MD5、etc)、 * Public key algorithm(RSA-PSS、ECDSA、etc)、Combination of the two(For example 'RSA+SHA384') * or TLS v1.3 Scheme name(For example rsa_pss_pss_sha512) */ diff --git a/api/@system.fetch.d.ts b/api/@system.fetch.d.ts index b36c780dbd99339081b90d156948b85406c0920c..f728c65db9765dbaef05393584baf6eb1d26e99c 100644 --- a/api/@system.fetch.d.ts +++ b/api/@system.fetch.d.ts @@ -14,7 +14,6 @@ */ /** - * @import import fetch from '@system.fetch'; * @since 3 * @syscap SystemCapability.Communication.NetStack */ @@ -39,7 +38,6 @@ export interface FetchResponse { } /** - * @import import fetch from '@system.fetch'; * @since 3 * @syscap SystemCapability.Communication.NetStack */ diff --git a/api/@system.network.d.ts b/api/@system.network.d.ts index 977bcd3414c0135317a20a7c5db1aeeb8ef3a0d2..c4ca8227931ee9a77e9ef853b85195194f577a27 100644 --- a/api/@system.network.d.ts +++ b/api/@system.network.d.ts @@ -14,7 +14,6 @@ */ /** - * @import import network from '@system.network'; * @since 3 * @syscap SystemCapability.Communication.NetManager.Core */ @@ -33,7 +32,6 @@ export interface NetworkResponse { } /** - * @import import network from '@system.network'; * @since 3 * @syscap SystemCapability.Communication.NetManager.Core */