SoraApi.DownloadFile method
下载文件到缓存目录
注意:此API的调用超时时间是独立于其他API的
public ValueTask<(ApiStatus apiStatus, string filePath)> DownloadFile(string url, int threadCount,
Dictionary<string, string> customHeader = null, int timeout = 10000)
parameter | description |
---|---|
url | 链接地址 |
threadCount | 下载线程数 |
customHeader | 自定义请求头 |
timeout | 超时(ms) |
Return Value
文件绝对路径
See Also
- struct ApiStatus
- class SoraApi
- namespace Sora.Entities.Base