SoraApi.DownloadFile method

下载文件到缓存目录

注意:此API的调用超时时间是独立于其他API的

public ValueTask<(ApiStatus apiStatus, string filePath)> DownloadFile(string url, int threadCount, 
    Dictionary<string, string> customHeader = null, int timeout = 10000)
parameterdescription
url链接地址
threadCount下载线程数
customHeader自定义请求头
timeout超时(ms)

Return Value

文件绝对路径

See Also