File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,31 @@ new UpCompletionHandler() {
8383...
8484```
8585
86+ ### 支持使用 HTTP/3 协议发起请求
87+
88+ 导入 [ HTTP/3 client 插件] ( https://github.com/qiniu/qiniu-android-curl-plugin ) ,http3 client 插件依赖于 Android SDK v8.5.0及以上版本
89+
90+ 安装导入
91+ ``` java
92+ implementation ' com.qiniu:qiniu-android-plugin:1.0.+'
93+ ```
94+
95+ 使用 CurlClient
96+ ``` java
97+ import com.qiniu.client.curl.CurlClient ;
98+ import com.qiniu.android.storage.Configuration ;
99+ import com.qiniu.android.storage.UploadManager ;
100+
101+ // @param caPath: SSL 证书本地路径;如果想自定义 CA 可设置此选项,此处为 CA 文件的本地路径。
102+ // 如果未定义(caPath 配置 null)则使用 SDK 内部提供的 CA 证书,证书来源:https://curl.se/ca/cacert.pem
103+ CurlClient client = new CurlClient (caPath);
104+ Configuration config = new Configuration .Builder ()
105+ .requestClient(client)
106+ .build();
107+ UploadManager manager = new UploadManager (config);
108+ ```
109+
110+
86111## 测试
87112
88113``` bash
You can’t perform that action at this time.
0 commit comments