HttpManager

HttpManager使用 HttpURLConnection 实现的 IHttpManager

Author

Jenly Jenly

Constructors

Link copied to clipboard
constructor(timeout: Int)
HttpManager对外暴露。如果没有特殊需求,推荐使用getInstance

Functions

Link copied to clipboard
open fun cancel()
取消下载
Link copied to clipboard
open fun download(url: String, saveFilePath: String, @Nullable requestProperty: Map<String, String>, callback: IHttpManager.DownloadCallback)
下载
Link copied to clipboard