httpclient

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(ctx context.Context, path *paths.Path, URL string, queryParameter string, label string, downloadCB rpc.DownloadProgressCB, config downloader.Config, options ...downloader.DownloadOptions) (returnedError error)

DownloadFile downloads a file from a URL into the specified path. An optional config and options may be passed (or nil to use the defaults). A DownloadProgressCB callback function must be passed to monitor download progress. If a not empty queryParameter is passed, it is appended to the URL for analysis purposes.

Types

This section is empty.