Documentation ¶
Overview ¶
Package httputil implements various HTTP operations.
Index ¶
- func CheckGet(lg *zap.Logger, u, exp string, retries int, interval time.Duration, ...) bool
- func Download(lg *zap.Logger, progressWriter io.Writer, downloadURL string, fpath string) error
- func DownloadInsecure(lg *zap.Logger, progressWriter io.Writer, downloadURL string, fpath string) error
- func Read(lg *zap.Logger, progressWriter io.Writer, downloadURL string) (data []byte, err error)
- func ReadInsecure(lg *zap.Logger, progressWriter io.Writer, downloadURL string) (data []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGet ¶
func CheckGet(lg *zap.Logger, u, exp string, retries int, interval time.Duration, stopc chan struct{}) bool
CheckGet retries until HTTP response returns the expected output.
func DownloadInsecure ¶ added in v1.2.7
func DownloadInsecure(lg *zap.Logger, progressWriter io.Writer, downloadURL string, fpath string) error
DownloadInsecure downloads to a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.