Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &http.Client{ Transport: &LoggerTransport{ Transport: &http.Transport{ Dial: (&net.Dialer{ Timeout: 5 * time.Second, }).Dial, TLSHandshakeTimeout: 5 * time.Second, }, }, }
DefaultClient is a HTTP client with sane defaults.
Functions ¶
func Download ¶
Download returns a reader for the file at url. It is the caller's responsibility to close the returned reader.
func DownloadIfNotExist ¶
DownloadIfNotExist writes the resource at url to the file at path if it does not already exist. If no extension is specified in path, the extension will be modified to mirror that of the resource at url.
Types ¶
Click to show internal directories.
Click to hide internal directories.