Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36" ConnNum = 10 )
View Source
const ( GoroutineNum = ConnNum PartSizeLimit = 200 * 1024 // 200KB )
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
Types ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) DownloadFile ¶
func (task *Task) DownloadFile()
Click to show internal directories.
Click to hide internal directories.