mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-06 09:09:10 +08:00
Compare commits
2 Commits
1204a0033e
...
74040066ac
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74040066ac | ||
|
|
b5a511b9da |
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建下载器
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user