mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
Merge branch 'v7-dev' of gitee.com:chinabugotech/hutool into v7-dev
This commit is contained in:
@@ -45,6 +45,18 @@ 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).setCloseEngine(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建下载器
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user