Documentation ¶
Overview ¶
Utils
entityBean
fileload
Index ¶
- Constants
- func DeepCopy(dst, src interface{}) error
- func Do(request *http.Request, fragment, no int)
- func DownDemo()
- func GetClient(proxystr string, timeout int, defaultCookieJar *cookiejar.Jar, ...) *http.Client
- func GetCurrentPath() (string, error)
- func GetHtmlDemo()
- func GetRandomUserAgent() string
- func HttpGet(dst_url string, proxy_str string, headerMap map[string]string, ...) (*http.Request, *http.Response, *http.Client, error)
- func HttpHeaderBuild(request *http.Request, headerMap map[string]string)
- func MultithreadDownloader(downbean DownEntity, proxy_str string)
- type DownEntity
Constants ¶
View Source
const VERSION = "1.0.3"
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
func GetClient(proxystr string, timeout int, defaultCookieJar *cookiejar.Jar, disableCompression bool) *http.Client
获取配置http.Client 代理配置,超时,默认cookie,是否启用压缩
func GetHtmlDemo ¶
func GetHtmlDemo()
func HttpHeaderBuild ¶
构建http header
func MultithreadDownloader ¶
func MultithreadDownloader(downbean DownEntity, proxy_str string)
cnum 线程数,savePath 保存路径 durl 下载路径 func MultithreadDownloader(cor int, pdst string, durl string) {
Types ¶
Click to show internal directories.
Click to hide internal directories.