httphlp

package
v0.0.0-...-c4a7fdd Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GStorageOnAuthRoundTripper = OnAuthRoundTripper{MaxIdleConnsPerHost: gnMaxIdleConnsPerHost}
)

GStorageOnAuthRoundTripper do smth

Functions

func CreateTempMetaData

func CreateTempMetaData()

CreateTempMetaData do smth

func DownloadFile

func DownloadFile(szFilePath string, szUploadPath string, szTargetURL string) error

DownloadFile do smth

func HeadFile

func HeadFile(szTargetURL, szURLTail string) (bool, error)

HeadFile do smth

func PostFile

func PostFile(szFilePath string, szUploadPath string, szTargetURL string, szSha1 string, szTempDir string) (string, error)

PostFile do smth

func SetHTTPClientTimeout

func SetHTTPClientTimeout(nTimeout int64)

SetHTTPClientTimeout do smth

func SetMaxIdleConnsPerHost

func SetMaxIdleConnsPerHost(nMaxIdleConnsPerHost int)

SetMaxIdleConnsPerHost do smth

func SetPlatform

func SetPlatform(szPlatform string)

SetPlatform do smth

func SetVersion

func SetVersion(szVersion string)

SetVersion do smth

Types

type OnAuthRoundTripper

type OnAuthRoundTripper struct {
	MaxIdleConnsPerHost                        int
	StorageUser, StoragePassword, StorageToken string
	// contains filtered or unexported fields
}

OnAuthRoundTripper do smth

func (*OnAuthRoundTripper) Client

func (pOnAuthRoundTripper *OnAuthRoundTripper) Client() *http.Client

Client do smth

func (*OnAuthRoundTripper) RoundTrip

func (pOnAuthRoundTripper *OnAuthRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip do smth

Jump to

Keyboard shortcuts

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