Skip to content

Commit 65b4b74

Browse files
authored
Update README.md
1 parent 8755fcf commit 65b4b74

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,22 @@ new UpCompletionHandler() {
8383
...
8484
```
8585

86+
### 使用 http3 协议发起请求
87+
```java
88+
import com.qiniu.client.curl.CurlClient;
89+
import com.qiniu.android.storage.Configuration;
90+
import com.qiniu.android.storage.UploadManager;
91+
92+
// @param caPath: SSL 证书本地路径;如果想自定义 CA 可设置此选项,此处为 CA 文件的本地路径。
93+
// 如果未定义(caPath 配置 null)则使用 SDK 内部提供的 CA 证书,证书来源:https://curl.se/ca/cacert.pem
94+
CurlClient client = new CurlClient(caPath);
95+
Configuration config = new Configuration.Builder()
96+
.requestClient(client)
97+
.build();
98+
UploadManager manager = new UploadManager(config);
99+
```
100+
101+
86102
## 测试
87103

88104
``` bash

0 commit comments

Comments
 (0)