diff --git a/zh-cn/application-dev/reference/apis/js-apis-http.md b/zh-cn/application-dev/reference/apis/js-apis-http.md index e25aae3631f62dc8a94749c73acda979e76a7017..50e37fe3d754730f6aeb95e67a6ba109a1d31586 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-http.md +++ b/zh-cn/application-dev/reference/apis/js-apis-http.md @@ -46,7 +46,7 @@ httpRequest.request( readTimeout: 60000, // 可选,默认为60000ms usingProtocol: http.HttpProtocol.HTTP1_1, // 可选,协议类型默认值由系统自动指定 usingProxy: false, //可选,默认不使用网络代理,自API 10开始支持该属性 - caPath: "", // 可选,如果设置了此参数,系统将使用用户指定的证书路径,否则将使用系统预设的证书路径。 + caPath: "", // 可选,默认使用系统预设CA证书,自API 10开始支持该属性 }, (err, data) => { if (!err) { // data.result为HTTP响应内容,可根据业务需要进行解析 @@ -121,10 +121,34 @@ request(url: string, callback: AsyncCallback\):void |---------|-------------------------------------------------------| | 401 | Parameter error. | | 201 | Permission denied. | +| 2300001 | Unsupported protocol. | | 2300003 | URL using bad/illegal format or missing URL. | +| 2300005 | Couldn't resolve proxy name. | +| 2300006 | Couldn't resolve host name. | | 2300007 | Couldn't connect to server. | +| 2300008 | Weird server reply. | +| 2300009 | Access denied to remote resource. | +| 2300016 | Error in the HTTP2 framing layer. | +| 2300018 | Transferred a partial file. | +| 2300023 | Failed writing received data to disk/application. | +| 2300025 | Upload failed. | +| 2300026 | Failed to open/read local data from file/application. | +| 2300027 | Out of memory. | | 2300028 | Timeout was reached. | +| 2300047 | Number of redirects hit maximum amount. | | 2300052 | Server returned nothing (no headers, no data). | +| 2300055 | Failed sending data to the peer. | +| 2300056 | Failure when receiving data from the peer. | +| 2300058 | Problem with the local SSL certificate. | +| 2300059 | Couldn't use specified SSL cipher. | +| 2300060 | SSL peer certificate or SSH remote key was not OK. | +| 2300061 | Unrecognized or bad HTTP Content or Transfer-Encoding.| +| 2300063 | Maximum file size exceeded. | +| 2300070 | Disk full or allocation exceeded. | +| 2300073 | Remote file already exists. | +| 2300077 | Problem with the SSL CA cert (path? access rights?). | +| 2300078 | Remote file not found. | +| 2300094 | An authentication function returned an error. | | 2300999 | Unknown Other Error. | > **错误码说明:** @@ -358,10 +382,34 @@ request2(url: string, callback: AsyncCallback\): void |---------|-------------------------------------------------------| | 401 | Parameter error. | | 201 | Permission denied. | +| 2300001 | Unsupported protocol. | | 2300003 | URL using bad/illegal format or missing URL. | +| 2300005 | Couldn't resolve proxy name. | +| 2300006 | Couldn't resolve host name. | | 2300007 | Couldn't connect to server. | +| 2300008 | Weird server reply. | +| 2300009 | Access denied to remote resource. | +| 2300016 | Error in the HTTP2 framing layer. | +| 2300018 | Transferred a partial file. | +| 2300023 | Failed writing received data to disk/application. | +| 2300025 | Upload failed. | +| 2300026 | Failed to open/read local data from file/application. | +| 2300027 | Out of memory. | | 2300028 | Timeout was reached. | +| 2300047 | Number of redirects hit maximum amount. | | 2300052 | Server returned nothing (no headers, no data). | +| 2300055 | Failed sending data to the peer. | +| 2300056 | Failure when receiving data from the peer. | +| 2300058 | Problem with the local SSL certificate. | +| 2300059 | Couldn't use specified SSL cipher. | +| 2300060 | SSL peer certificate or SSH remote key was not OK. | +| 2300061 | Unrecognized or bad HTTP Content or Transfer-Encoding.| +| 2300063 | Maximum file size exceeded. | +| 2300070 | Disk full or allocation exceeded. | +| 2300073 | Remote file already exists. | +| 2300077 | Problem with the SSL CA cert (path? access rights?). | +| 2300078 | Remote file not found. | +| 2300094 | An authentication function returned an error. | | 2300999 | Unknown Other Error. | > **错误码说明:** @@ -758,7 +806,7 @@ httpRequest.off('dataEnd'); ### on('dataProgress')10+ -on(type: 'dataProgress', callback: AsyncCallback\<{ receiveSize: number, totalSize: number }\>): void +on(type: 'dataProgress', callback: Callback\<{ receiveSize: number, totalSize: number }\>): void 订阅HTTP流式响应数据接收进度事件。 @@ -821,7 +869,7 @@ httpRequest.off('dataProgress'); | connectTimeout | number | 否 | 连接超时时间。单位为毫秒(ms),默认为60000ms。 | | usingProtocol9+ | [HttpProtocol](#httpprotocol9) | 否 | 使用协议。默认值由系统自动指定。 | | usingProxy10+ | boolean \| Object | 否 | 是否使用HTTP代理,默认为false,不使用代理。
- 当usingProxy为布尔类型true时,使用默认网络代理。
- 当usingProxy为object类型时,使用指定网络代理。 -| caPath10+ | string | 否 | 如果设置了此参数,系统将使用用户指定的证书路径,否则将使用系统预设的证书路径。 | +| caPath10+ | string | 否 | 如果设置了此参数,系统将使用用户指定路径的CA证书,否则将使用系统预设CA证书。 | ## RequestMethod6+ @@ -936,6 +984,8 @@ flush(callback: AsyncCallback\): void 将缓存中的数据写入文件系统,以便在下一个HTTP请求中访问所有缓存数据,使用callback方式作为异步方法。 +**系统接口**:此接口为系统接口。 + **系统能力**:SystemCapability.Communication.NetStack **参数:** @@ -962,6 +1012,8 @@ flush(): Promise\ 将缓存中的数据写入文件系统,以便在下一个HTTP请求中访问所有缓存数据,使用Promise方式作为异步方法。 +**系统接口**:此接口为系统接口。 + **系统能力**:SystemCapability.Communication.NetStack **返回值:** @@ -986,6 +1038,8 @@ delete(callback: AsyncCallback\): void 禁用缓存并删除其中的数据,使用callback方式作为异步方法。 +**系统接口**:此接口为系统接口。 + **系统能力**:SystemCapability.Communication.NetStack **参数:** @@ -1012,6 +1066,8 @@ delete(): Promise\ 禁用缓存并删除其中的数据,使用Promise方式作为异步方法。 +**系统接口**:此接口为系统接口。 + **系统能力**:SystemCapability.Communication.NetStack **返回值:** @@ -1038,9 +1094,9 @@ http的数据类型。 | 名称 | 值 | 说明 | | ------------------ | -- | ----------- | -| STRING | 0 | 字符串类型。 | -| OBJECT | 1 | 对象类型。 | -| ARRAY_BUFFER | 2 | 二进制数组类型。| +| STRING6+ | 0 | 字符串类型。 | +| OBJECT6+ | 1 | 对象类型。 | +| ARRAY_BUFFER6+ | 2 | 二进制数组类型。| ## HttpProtocol9+ diff --git a/zh-cn/application-dev/reference/apis/js-apis-net-connection.md b/zh-cn/application-dev/reference/apis/js-apis-net-connection.md index fb1fd07244e37ff172cd61704396c3e5ab8d7df8..6e4006e92057bd65d867ec7dd4674f6b38f25bdb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-net-connection.md +++ b/zh-cn/application-dev/reference/apis/js-apis-net-connection.md @@ -1195,9 +1195,10 @@ register(callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ----------------------------- | | 201 | Permission denied. | +| 401 | Parameter error. | | 2100002 | Operation failed. Cannot connect to service.| | 2100003 | System internal error. | -| 2101008 | The callback is not exists. | +| 2101008 | The callback is not found. | | 2101022 | The number of requests exceeded the maximum. | **示例:** @@ -1226,9 +1227,11 @@ unregister(callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ----------------------------- | +| 201 | Permission denied.| +| 401 | Parameter error. | | 2100002 | Operation failed. Cannot connect to service.| | 2100003 | System internal error. | -| 2101007 | The same callback exists. | +| 2100207 | Remote is null. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-net-ethernet.md b/zh-cn/application-dev/reference/apis/js-apis-net-ethernet.md index 6ccc2c0f2eceb0ba42835e7638cd86ef11322649..65491e56f8ceb5703027da25e20eb32532bd0ab3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-net-ethernet.md +++ b/zh-cn/application-dev/reference/apis/js-apis-net-ethernet.md @@ -36,13 +36,15 @@ setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallbac | 错误码ID | 错误信息 | | ------- | ----------------------------------------| | 201 | Permission denied. | +| 202 | System permission denied. | | 401 | Parameter error. | | 2200001 | Invalid parameter value. | | 2200002 | Operation failed. Cannot connect to service.| | 2200003 | System internal error. | -| 2201005 | The device information does not exist. | -| 2201006 | Device disconnected. | -| 2201007 | Failed to write the user configuration. | +| 2201004 | Invalid Ethernet profile. | +| 2201005 | Device information does not exist. | +| 2201006 | Ethernet device not connected. | +| 2201007 | Ethernet failed to write user configuration information. | **示例:** @@ -94,13 +96,15 @@ setIfaceConfig(iface: string, ic: InterfaceConfiguration): Promise\ | 错误码ID | 错误信息 | | ------- | ----------------------------------------| | 201 | Permission denied. | +| 202 | System permission denied. | | 401 | Parameter error. | | 2200001 | Invalid parameter value. | | 2200002 | Operation failed. Cannot connect to service.| | 2200003 | System internal error. | -| 2201005 | The device information does not exist. | -| 2201006 | Device disconnected. | -| 2201007 | Failed to write the user configuration. | +| 2201004 | Invalid Ethernet profile. | +| 2201005 | Device information does not exist. | +| 2201006 | Ethernet device not connected. | +| 2201007 | Ethernet failed to write user configuration information. | **示例:** @@ -144,11 +148,12 @@ getIfaceConfig(iface: string, callback: AsyncCallback\): | 错误码ID | 错误信息 | | ------- | ----------------------------------------| | 201 | Permission denied. | +| 202 | System permission denied. | | 401 | Parameter error. | | 2200001 | Invalid parameter value. | | 2200002 | Operation failed. Cannot connect to service.| | 2200003 | System internal error. | -| 2201005 | The device information does not exist. | +| 2201005 | Device information does not exist. | **示例:** @@ -197,11 +202,12 @@ getIfaceConfig(iface: string): Promise\ | 错误码ID | 错误信息 | | ------- | ----------------------------------------| | 201 | Permission denied. | +| 202 | System permission denied. | | 401 | Parameter error. | | 2200001 | Invalid parameter value. | | 2200002 | Operation failed. Cannot connect to service.| | 2200003 | System internal error. | -| 2201005 | The device information does not exist. | +| 2201005 | Device information does not exist. | **示例:** @@ -243,11 +249,12 @@ isIfaceActive(iface: string, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ----------------------------------------| | 201 | Permission denied. | +| 202 | System permission denied. | | 401 | Parameter error. | | 2200001 | Invalid parameter value. | | 2200002 | Operation failed. Cannot connect to service.| | 2200003 | System internal error. | -| 2201005 | The device information does not exist. | +| 2201005 | Device information does not exist. | **示例:** @@ -290,11 +297,12 @@ isIfaceActive(iface: string): Promise\ | 错误码ID | 错误信息 | | ------- | ----------------------------------------| | 201 | Permission denied. | +| 202 | System permission denied. | | 401 | Parameter error. | | 2200001 | Invalid parameter value. | | 2200002 | Operation failed. Cannot connect to service.| | 2200003 | System internal error. | -| 2201005 | The device information does not exist. | +| 2201005 | Device information does not exist. | **示例:** @@ -329,6 +337,7 @@ getAllActiveIfaces(callback: AsyncCallback\>): void | 错误码ID | 错误信息 | | ------- | ----------------------------------------| | 201 | Permission denied. | +| 202 | System permission denied. | | 2200002 | Operation failed. Cannot connect to service.| | 2200003 | System internal error. | @@ -370,6 +379,7 @@ getAllActiveIfaces(): Promise\> | 错误码ID | 错误信息 | | ------- | ----------------------------------------| | 201 | Permission denied. | +| 202 | System permission denied. | | 2200002 | Operation failed. Cannot connect to service.| | 2200003 | System internal error. | @@ -410,7 +420,7 @@ on(type: 'interfaceStateChange', callback: Callback\<{ iface: string, active: bo | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | -| 202 | Applicable only to system applications. | +| 202 | System permission denied. | | 401 | Parameter error. | **示例:** @@ -445,7 +455,7 @@ off(type: 'interfaceStateChange', callback?: Callback\<{ iface: string, active: | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | -| 202 | Applicable only to system applications. | +| 202 | System permission denied. | | 401 | Parameter error. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-net-mdns.md b/zh-cn/application-dev/reference/apis/js-apis-net-mdns.md index ea818ee45d24a6f808c81ae70f28618f7fbf68c0..1b8d62a9678ff1e2718efddc3309fc05a88319e7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-net-mdns.md +++ b/zh-cn/application-dev/reference/apis/js-apis-net-mdns.md @@ -215,7 +215,7 @@ removeLocalService(context: Context, serviceInfo: LocalServiceInfo, callback: As | 401 | Parameter error. | | 2100002 | Operation failed. Cannot connect to service. | | 2100003 | System internal error. | -| 2204002 | Callback not found. | +| 2204002 | Service instance not found. | | 2204008 | Service instance duplicated. | | 2204010 | Send packet failed. | @@ -310,7 +310,7 @@ removeLocalService(context: Context, serviceInfo: LocalServiceInfo): Promise\ **错误码说明:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-net-sharing.md b/zh-cn/application-dev/reference/apis/js-apis-net-sharing.md index df76b643078cb4c0cce9f3aa40f019c1c65bbc17..c42ed9f0230e8d53593a82d8c5c84b48f28532dc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-net-sharing.md +++ b/zh-cn/application-dev/reference/apis/js-apis-net-sharing.md @@ -108,8 +108,10 @@ isSharing(callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 2200002 | Operation failed. Cannot connect to service. | | 2200003 | System internal error. | +| 2202011 | Cannot get network sharing configuration. | **示例:** @@ -143,8 +145,10 @@ isSharing(): Promise\ | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 2200002 | Operation failed. Cannot connect to service. | | 2200003 | System internal error. | +| 2202011 | Cannot get network sharing configuration. | **示例:** @@ -277,10 +281,12 @@ stopSharing(type: SharingIfaceType, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 401 | Parameter error. | | 2200001 | Invalid parameter value. | | 2200002 | Operation failed. Cannot connect to service. | | 2200003 | System internal error. | +| 2200004 | Try to share an unavailable iface. | | 2202005 | WiFi sharing failed. | | 2202006 | Bluetooth sharing failed. | | 2202011 | Cannot get network sharing configuration. | @@ -325,10 +331,12 @@ stopSharing(type: SharingIfaceType): Promise\ | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 401 | Parameter error. | | 2200001 | Invalid parameter value. | | 2200002 | Operation failed. Cannot connect to service. | | 2200003 | System internal error. | +| 2200004 | Try to share an unavailable iface. | | 2202005 | WiFi sharing failed. | | 2202006 | Bluetooth sharing failed. | | 2202011 | Cannot get network sharing configuration. | @@ -847,6 +855,7 @@ on(type: 'sharingStateChange', callback: Callback\): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 401 | Parameter error. | **示例:** @@ -881,6 +890,7 @@ off(type: 'sharingStateChange', callback?: Callback\): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 401 | Parameter error. | **示例:** @@ -916,6 +926,7 @@ SharingIfaceState }>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 401 | Parameter error. | **示例:** @@ -951,6 +962,7 @@ SharingIfaceState }>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 401 | Parameter error. | **示例:** @@ -985,6 +997,7 @@ on(type: 'sharingUpstreamChange', callback: Callback\): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 401 | Parameter error. | **示例:** @@ -1019,6 +1032,7 @@ off(type: 'sharingUpstreamChange', callback?: Callback\): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 201 | Permission denied. | +| 202 | System permission denied | | 401 | Parameter error. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-socket.md b/zh-cn/application-dev/reference/apis/js-apis-socket.md index 70f7fb7c0d924e1472e5c4f986c1b8fb0c358662..b0bf07ffeedfeb74fd1e1017168215b802ee1974 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-socket.md +++ b/zh-cn/application-dev/reference/apis/js-apis-socket.md @@ -737,11 +737,11 @@ constructTCPSocketInstance(): TCPSocket let tcp = socket.constructTCPSocketInstance(); ``` -## TCPSocket9+ +## TCPSocket7+ TCPSocket连接。在调用TCPSocket的方法前,需要先通过[socket.constructTCPSocketInstance](#socketconstructtcpsocketinstance)创建TCPSocket对象。 -### bind9+ +### bind7+ bind(address: NetAddress, callback: AsyncCallback\): void @@ -778,7 +778,7 @@ tcp.bind({address: '192.168.xx.xxx', port: xxxx, family: 1}, err => { }) ``` -### bind9+ +### bind7+ bind(address: NetAddress): Promise\ @@ -819,7 +819,7 @@ promise.then(() => { }); ``` -### connect9+ +### connect7+ connect(options: TCPConnectOptions, callback: AsyncCallback\): void @@ -859,7 +859,7 @@ tcp.connect({ address: { address: '192.168.xx.xxx', port: xxxx, family: 1 }, tim }) ``` -### connect9+ +### connect7+ connect(options: TCPConnectOptions): Promise\ @@ -900,7 +900,7 @@ promise.then(() => { }); ``` -### send9+ +### send7+ send(options: TCPSendOptions, callback: AsyncCallback\): void @@ -946,7 +946,7 @@ tcp.connect({ address: { address: '192.168.xx.xxx', port: xxxx, family: 1 }, tim }) ``` -### send9+ +### send7+ send(options: TCPSendOptions): Promise\ @@ -998,7 +998,7 @@ promise1.then(() => { }); ``` -### close9+ +### close7+ close(callback: AsyncCallback\): void @@ -1033,7 +1033,7 @@ tcp.close(err => { }) ``` -### close9+ +### close7+ close(): Promise\ @@ -1067,7 +1067,7 @@ promise.then(() => { }); ``` -### getRemoteAddress9+ +### getRemoteAddress7+ getRemoteAddress(callback: AsyncCallback\): void @@ -1108,7 +1108,7 @@ tcp.connect({ address: { address: '192.168.xx.xxx', port: xxxx, family: 1 }, tim }); ``` -### getRemoteAddress9+ +### getRemoteAddress7+ getRemoteAddress(): Promise\ @@ -1151,7 +1151,7 @@ promise1.then(() => { }); ``` -### getState9+ +### getState7+ getState(callback: AsyncCallback\): void @@ -1192,7 +1192,7 @@ let promise = tcp.connect({ address: { address: '192.168.xx.xxx', port: xxxx, fa }); ``` -### getState9+ +### getState7+ getState(): Promise\ @@ -1235,7 +1235,7 @@ promise.then(() => { }); ``` -### setExtraOptions9+ +### setExtraOptions7+ setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback\): void @@ -1287,7 +1287,7 @@ let promise = tcp.connect({ address: { address: '192.168.xx.xxx', port: xxxx, fa }); ``` -### setExtraOptions9+ +### setExtraOptions7+ setExtraOptions(options: TCPExtraOptions): Promise\ @@ -1346,7 +1346,7 @@ promise.then(() => { }); ``` -### on('message')9+ +### on('message')7+ on(type: 'message', callback: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}\>): void @@ -1377,7 +1377,7 @@ tcp.on('message', value => { }); ``` -### off('message')9+ +### off('message')7+ off(type: 'message', callback?: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}\>): void @@ -1415,7 +1415,7 @@ tcp.off('message', callback); tcp.off('message'); ``` -### on('connect' | 'close')9+ +### on('connect' | 'close')7+ on(type: 'connect' | 'close', callback: Callback\): void @@ -1442,7 +1442,7 @@ tcp.on('close', () => { }); ``` -### off('connect' | 'close')9+ +### off('connect' | 'close')7+ off(type: 'connect' | 'close', callback?: Callback\): void @@ -1480,7 +1480,7 @@ tcp.off('close', callback2); tcp.off('close'); ``` -### on('error')9+ +### on('error')7+ on(type: 'error', callback: ErrorCallback): void @@ -1504,7 +1504,7 @@ tcp.on('error', err => { }); ``` -### off('error')9+ +### off('error')7+ off(type: 'error', callback?: ErrorCallback): void @@ -1535,7 +1535,7 @@ tcp.off('error', callback); tcp.off('error'); ``` -## TCPConnectOptions9+ +## TCPConnectOptions7+ TCPSocket连接的参数。 @@ -1546,7 +1546,7 @@ TCPSocket连接的参数。 | address | [NetAddress](#netaddress) | 是 | 绑定的地址以及端口。 | | timeout | number | 否 | 超时时间,单位毫秒(ms)。 | -## TCPSendOptions9+ +## TCPSendOptions7+ TCPSocket发送请求的参数。 @@ -1557,7 +1557,7 @@ TCPSocket发送请求的参数。 | data | string\| ArrayBuffer7+ | 是 | 发送的数据。 | | encoding | string | 否 | 字符编码(UTF-8,UTF-16BE,UTF-16LE,UTF-16,US-AECII,ISO-8859-1),默认为UTF-8。 | -## TCPExtraOptions9+ +## TCPExtraOptions7+ TCPSocket连接的其他属性。 @@ -2663,7 +2663,7 @@ send(data: string, callback: AsyncCallback\): void | ------- | -------------------------------------------- | | 401 | Parameter error. | | 2303501 | SSL is null. | -| 2303503 | Error in tls writing | +| 2303503 | Error in tls writing. | | 2303505 | Error occurred in the tls system call. | | 2303506 | Error clearing tls connection. | | 2300002 | System internal error. | @@ -2700,7 +2700,7 @@ send(data: string): Promise\ | ------- | -------------------------------------------- | | 401 | Parameter error. | | 2303501 | SSL is null. | -| 2303503 | Error in tls writing | +| 2303503 | Error in tls writing. | | 2303505 | Error occurred in the tls system call. | | 2303506 | Error clearing tls connection. | | 2300002 | System internal error. | @@ -2835,6 +2835,3 @@ TLS通信的协议版本。 **系统能力**:SystemCapability.Communication.NetStack -| 类型 | 说明 | -| --------------------------------------------------------------------- | --------------------- | -|[cert.EncodingBlob](js-apis-cert.md#datablob) | 存储证书的数据和编码格式 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md b/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md index 8b6fd5df29371a4b97f9911e0a5be8cd2cfa51b0..f8a64fc102aebee4a456d835203ce19ccd54e2ae 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md @@ -45,6 +45,8 @@ fetch(Object): void ## FetchResponse3+ +**系统能力:** SystemCapability.Communication.NetStack + | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | code | number | 是 | 否 | 表示服务器的状态code。 |