netutility

package
v0.0.0-...-313507d Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHttpClient

func GetHttpClient(conf *CommonConf) *http.Client

Types

type NetUtility

type NetUtility struct {
	Header map[string]string
	Conf   *CommonConf
	Body   io.Reader
	// contains filtered or unexported fields
}

func (*NetUtility) CallHTTP

func (net *NetUtility) CallHTTP(method string, Timeout time.Duration, beforeSend func(*http.Response)) (result string, err error)

func (*NetUtility) Construct

func (net *NetUtility) Construct(url, login, pass string) *NetUtility

func (*NetUtility) DownloadFile

func (net *NetUtility) DownloadFile(filepath string) error

func (*NetUtility) SendByte

func (net *NetUtility) SendByte(method string, b []byte, beforeSend func(*http.Response)) error

Jump to

Keyboard shortcuts

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