package
0.0.97
Repository: https://github.com/linuxsuren/http-downloader.git
Documentation: pkg.go.dev

# Functions

DetectSizeWithRoundTripper returns the size of target resource.
DownloadFileWithMultipleThreadKeepParts downloads the files with multiple threads.
GetCurrentLine returns the current line.
NewRetryClient creates the instance of RetryClient.
ParseSuggestedFilename parse the filename from resp header,More details from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition.
SetProxy set the proxy for a http.

# Constants

ApplicationForm is for the form submit.
ContentType is for the http header of content type.

# Structs

ContinueDownloader is a downloader which support continuously download.
DownloadError represents the error of HTTP download.
FakeReader is a fake reader for the test purpose.
HTTPDownloader is the downloader for http request.
MultiThreadDownloader is a download with multi-thread.
ProgressIndicator hold the progress of io operation.
RetryClient is the wrap of http.Client.

# Interfaces

SuggestedFilenameAware is the interface for getting suggested filename.