request

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

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) Get

func (that *Fetcher) Get() (r *resty.Response)

func (*Fetcher) GetAndSaveFile

func (that *Fetcher) GetAndSaveFile(localPath string, force ...bool) (size int64)

func (*Fetcher) GetFile

func (that *Fetcher) GetFile(localPath string, force ...bool) (size int64)

func (*Fetcher) Post

func (that *Fetcher) Post() (r *resty.Response)

func (*Fetcher) RemoveProxy

func (that *Fetcher) RemoveProxy()

func (*Fetcher) SetProxyEnvName

func (that *Fetcher) SetProxyEnvName(name string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL