Documentation ¶
Index ¶
- Constants
- type Fetcher
- func (that *Fetcher) Delete() (r *resty.Response)
- func (that *Fetcher) DownloadAndDecompress(localPath, dstDir string, force ...bool) error
- func (that *Fetcher) Get() (r *resty.Response)
- func (that *Fetcher) GetAndSaveFile(localPath string, force ...bool) (size int64)
- func (that *Fetcher) GetFile(localPath string, force ...bool) (size int64)
- func (that *Fetcher) GetString() (result string, statusCode int)
- func (that *Fetcher) Patch() (r *resty.Response)
- func (that *Fetcher) Post() (r *resty.Response)
- func (that *Fetcher) Put() (r *resty.Response)
- func (that *Fetcher) RemoveProxy()
- func (that *Fetcher) SetCheckSum(checkSum, checkSumType string)
- func (that *Fetcher) SetFileContentLength(length int64)
- func (that *Fetcher) SetProgramOpts(opts ...tea.ProgramOption)
- func (that *Fetcher) SetProxyEnvName(name string)
- func (that *Fetcher) SetThreadNum(num int)
- func (that *Fetcher) SetUrl(url string)
Constants ¶
View Source
const (
WaitBarCompleteEnv string = "REQUEST_WAIT_BAR_COMPLETE"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct { Url string PostBody map[string]interface{} Timeout time.Duration RetryTimes int Headers map[string]string Proxy string NoRedirect bool // contains filtered or unexported fields }
func NewFetcher ¶
func NewFetcher() *Fetcher
func (*Fetcher) DownloadAndDecompress ¶
func (*Fetcher) GetAndSaveFile ¶
func (*Fetcher) RemoveProxy ¶
func (that *Fetcher) RemoveProxy()
func (*Fetcher) SetCheckSum ¶
func (*Fetcher) SetFileContentLength ¶ added in v0.9.6
func (*Fetcher) SetProgramOpts ¶
func (that *Fetcher) SetProgramOpts(opts ...tea.ProgramOption)
func (*Fetcher) SetProxyEnvName ¶
func (*Fetcher) SetThreadNum ¶
Click to show internal directories.
Click to hide internal directories.