add methods

This commit is contained in:
Looly
2025-11-07 01:37:42 +08:00
parent b5a511b9da
commit 74040066ac

View File

@@ -46,14 +46,15 @@ import java.util.Map;
public class HttpDownloader {
/**
* 创建下载器
* 创建下载器,使用自定义引擎<br>
* 自定义引擎使用完毕后不会关闭
*
* @param engine 引擎
* @param url 请求地址
* @return 下载器
*/
public static HttpDownloader of(ClientEngine engine, String url) {
return of(url).setEngine(engine);
return of(url).setEngine(engine).setCloseEngine(false);
}
/**