[adapters] 多线程内的网络调用启用高性能模式,并支持 Http2、Quic/Http3

This commit is contained in:
SmallMain 2024-10-31 17:17:50 +08:00
parent 195434e30e
commit f9c85aedda
No known key found for this signature in database

View File

@ -68,6 +68,9 @@ var fsUtils = {
downloadFile(remoteUrl, filePath, header, onProgress, onComplete) {
var options = {
url: remoteUrl,
useHighPerformanceMode: true,
enableHttp2: true,
enableQuic: true,
success: function (res) {
if (res.statusCode === 200) {
onComplete && onComplete(null, res.tempFilePath || res.filePath);