Documentation ¶
Index ¶
- func GetHttpClient(conf *CommonConf) *http.Client
- type NetUtility
- func (net *NetUtility) CallHTTP(method string, Timeout time.Duration, beforeSend func(*http.Response)) (result string, err error)
- func (net *NetUtility) Construct(url, login, pass string) *NetUtility
- func (net *NetUtility) DownloadFile(filepath string) error
- func (net *NetUtility) SendByte(method string, b []byte, beforeSend func(*http.Response)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHttpClient ¶
Types ¶
type NetUtility ¶
type NetUtility struct { Header map[string]string Conf *CommonConf Body io.Reader // contains filtered or unexported fields }
func (*NetUtility) Construct ¶
func (net *NetUtility) Construct(url, login, pass string) *NetUtility
func (*NetUtility) DownloadFile ¶
func (net *NetUtility) DownloadFile(filepath string) error
Click to show internal directories.
Click to hide internal directories.