mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-07 01:28:34 +08:00
add methods
This commit is contained in:
parent
b5a511b9da
commit
74040066ac
@ -46,14 +46,15 @@ import java.util.Map;
|
|||||||
public class HttpDownloader {
|
public class HttpDownloader {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建下载器
|
* 创建下载器,使用自定义引擎<br>
|
||||||
|
* 自定义引擎使用完毕后不会关闭
|
||||||
*
|
*
|
||||||
* @param engine 引擎
|
* @param engine 引擎
|
||||||
* @param url 请求地址
|
* @param url 请求地址
|
||||||
* @return 下载器
|
* @return 下载器
|
||||||
*/
|
*/
|
||||||
public static HttpDownloader of(ClientEngine engine, String url) {
|
public static HttpDownloader of(ClientEngine engine, String url) {
|
||||||
return of(url).setEngine(engine);
|
return of(url).setEngine(engine).setCloseEngine(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user