未验证 提交 c442a435 编写于 作者: O openharmony_ci 提交者: Gitee

!13845 修改request接口参数描述

Merge pull request !13845 from ann_lesley/master
...@@ -755,7 +755,7 @@ remove(callback: AsyncCallback<boolean>): void ...@@ -755,7 +755,7 @@ remove(callback: AsyncCallback<boolean>): void
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| filename | string | 是 | multipart提交时,请求头中的文件名。 | | filename | string | 是 | multipart提交时,请求头中的文件名。 |
| name | string | 是 | multipart提交时,表单项目的名称,缺省为file。 | | name | string | 是 | multipart提交时,表单项目的名称,缺省为file。 |
| uri | string | 是 | 文件的本地存储路径。<br/>支持“dataability”和“internal”两种协议类型,但“internal”仅支持临时目录,示例:<br/>dataability:///com.domainname.dataability.persondata/person/10/file.txt<br/>internal://cache/path/to/file.txt | | uri | string | 是 | 文件的本地存储路径。<br/>仅支持“internal”协议类型,“internal://cache/”为必填字段,示例:<br/>internal://cache/path/to/file.txt |
| type | string | 是 | 文件的内容类型,默认根据文件名或路径的后缀获取。 | | type | string | 是 | 文件的内容类型,默认根据文件名或路径的后缀获取。 |
......
...@@ -89,11 +89,11 @@ upload(options: UploadRequestOptions): void ...@@ -89,11 +89,11 @@ upload(options: UploadRequestOptions): void
**系统能力**: 以下各项对应的系统能力均为SystemCapability.MiscServices.Upload。 **系统能力**: 以下各项对应的系统能力均为SystemCapability.MiscServices.Upload。
| 名称 | 类型 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| code | number | 服务器返回的HTTP状态码。 | | code | number | 是 | 服务器返回的HTTP状态码。 |
| data | string | 服务器返回的内容。根据返回头内容中的type决定该值的类型。 | | data | string | 是 | 服务器返回的内容。根据返回头内容中的type决定该值的类型。 |
| headers | Object | 服务器返回的返回头内容。 | | headers | Object | 是 | 服务器返回的返回头内容。 |
## RequestFile ## RequestFile
...@@ -189,9 +189,9 @@ download(options: DownloadRequestOptions): void ...@@ -189,9 +189,9 @@ download(options: DownloadRequestOptions): void
**系统能力**: 以下各项对应的系统能力均为SystemCapability.MiscServices.Download。 **系统能力**: 以下各项对应的系统能力均为SystemCapability.MiscServices.Download。
| 名称 | 类型 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| token | string | 表示下载的token,获取下载状态的依据。 | | token | string | 是 | 表示下载的token,获取下载状态的依据。 |
## request.onDownloadComplete ## request.onDownloadComplete
...@@ -254,6 +254,6 @@ onDownloadComplete(options: OnDownloadCompleteOptions): void ...@@ -254,6 +254,6 @@ onDownloadComplete(options: OnDownloadCompleteOptions): void
**系统能力**: 以下各项对应的系统能力均为SystemCapability.MiscServices.Download。 **系统能力**: 以下各项对应的系统能力均为SystemCapability.MiscServices.Download。
| 名称 | 类型 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| uri | string | 表示下载文件的uri。 | | uri | string | 是 | 表示下载文件的uri。 |
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册