add methods

This commit is contained in:
Looly 2025-11-07 01:35:19 +08:00
parent 1204a0033e
commit b5a511b9da

View File

@ -45,6 +45,17 @@ import java.util.Map;
*/ */
public class HttpDownloader { public class HttpDownloader {
/**
* 创建下载器
*
* @param engine 引擎
* @param url 请求地址
* @return 下载器
*/
public static HttpDownloader of(ClientEngine engine, String url) {
return of(url).setEngine(engine);
}
/** /**
* 创建下载器 * 创建下载器
* *