mirror of
https://gitee.com/dromara/hutool.git
synced 2025-11-24 08:33:22 +08:00
add methods
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user