mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 22:24:20 +00:00
门禁格式化检查修改1
Signed-off-by: xujie <xujie223@huawei.com>
This commit is contained in:
parent
81f10b2ad8
commit
893212baf9
1
api/@ohos.net.http.d.ts
vendored
1
api/@ohos.net.http.d.ts
vendored
@ -419,6 +419,7 @@ declare namespace http {
|
||||
* @param { string } type Indicates Event name.
|
||||
* @param { AsyncCallback<Object> } callback - the callback of on.
|
||||
* @syscap SystemCapability.Communication.NetStack
|
||||
* @since 6
|
||||
* @deprecated since 8
|
||||
* @useinstead on_headersReceive
|
||||
*/
|
||||
|
8
api/@ohos.net.socket.d.ts
vendored
8
api/@ohos.net.socket.d.ts
vendored
@ -214,6 +214,7 @@ declare namespace socket {
|
||||
/**
|
||||
* Port number. The value ranges from 0 to 65535.
|
||||
* @type {number}
|
||||
* @syscap SystemCapability.Communication.NetStack
|
||||
* @crossplatform
|
||||
* @since 7
|
||||
*/
|
||||
@ -222,6 +223,7 @@ declare namespace socket {
|
||||
/**
|
||||
* Length of the server response message, in bytes.
|
||||
* @type {number}
|
||||
* @syscap SystemCapability.Communication.NetStack
|
||||
* @crossplatform
|
||||
* @since 7
|
||||
*/
|
||||
@ -1041,8 +1043,7 @@ declare namespace socket {
|
||||
/**
|
||||
* <p>The list of signature algorithms shared between the server and the client,
|
||||
* in descending order of priority.</p>
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback of getSignatureAlgorithms.
|
||||
* @see https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback of getSignatureAlgorithms.@see https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html
|
||||
* @throws { BusinessError } 2303501 - SSL is null.
|
||||
* @throws { BusinessError } 2300002 - System internal error.
|
||||
* @syscap SystemCapability.Communication.NetStack
|
||||
@ -1054,8 +1055,7 @@ declare namespace socket {
|
||||
/**
|
||||
* <p>The list of signature algorithms shared between the server and the client,
|
||||
* in descending order of priority.</p>
|
||||
* @returns { Promise<Array<string>> } The promise returned by the function.
|
||||
* @see https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html
|
||||
* @returns { Promise<Array<string>> } The promise returned by the function.@see https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html
|
||||
* @throws { BusinessError } 2303501 - SSL is null.
|
||||
* @throws { BusinessError } 2300002 - System internal error.
|
||||
* @syscap SystemCapability.Communication.NetStack
|
||||
|
2
api/@ohos.net.webSocket.d.ts
vendored
2
api/@ohos.net.webSocket.d.ts
vendored
@ -79,8 +79,8 @@ declare namespace webSocket {
|
||||
* <p>Defines a WebSocket object. Before invoking WebSocket APIs,
|
||||
* you need to call webSocket.createWebSocket to create a WebSocket object.</p>
|
||||
* @interface WebSocket
|
||||
* @crossplatform
|
||||
* @syscap SystemCapability.Communication.NetStack
|
||||
* @crossplatform
|
||||
* @since 6
|
||||
*/
|
||||
export interface WebSocket {
|
||||
|
3
api/@system.fetch.d.ts
vendored
3
api/@system.fetch.d.ts
vendored
@ -50,8 +50,9 @@ export interface FetchResponse {
|
||||
export default class Fetch {
|
||||
/**
|
||||
* Obtains data through the network.
|
||||
* @syscap SystemCapability.Communication.NetStack
|
||||
* @param options
|
||||
* @syscap SystemCapability.Communication.NetStack
|
||||
* @since 3
|
||||
*/
|
||||
static fetch(options:{
|
||||
/**
|
||||
|
7
api/@system.network.d.ts
vendored
7
api/@system.network.d.ts
vendored
@ -22,15 +22,15 @@
|
||||
export interface NetworkResponse {
|
||||
/**
|
||||
* Network type. The values can be 2G, 3G, 4G, WiFi, or none.
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @type {string}
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @since 3
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* Whether the billing is based on the data volume.
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @type {boolean}
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @since 3
|
||||
*/
|
||||
metered: boolean;
|
||||
@ -45,6 +45,7 @@ export default class Network {
|
||||
* Obtains the network type.
|
||||
* @param options
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @since 3
|
||||
*/
|
||||
static getType(options?: {
|
||||
/**
|
||||
@ -71,6 +72,7 @@ export default class Network {
|
||||
* Listens to the network connection state. If this method is called multiple times, the last call takes effect.
|
||||
* @param options
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @since 3
|
||||
*/
|
||||
static subscribe(options?:{
|
||||
/**
|
||||
@ -91,6 +93,7 @@ export default class Network {
|
||||
* Cancels listening to the network connection state.
|
||||
* @param options
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @since 3
|
||||
*/
|
||||
static unsubscribe(): void;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user