Structsยง
- Temp
File ๐Guard
Constantsยง
- DOWNLOAD_
CONNECT_ ๐TIMEOUT_ SECS - DOWNLOAD_
READ_ ๐BUFFER_ SIZE - DOWNLOAD_
REQUEST_ ๐TIMEOUT_ SECS - DOWNLOAD_
WRITE_ ๐BUFFER_ SIZE - PROGRESS_
REPORT_ ๐INTERVAL
Functionsยง
- build_
client - Builds the shared blocking HTTP client for downloads.
- download_
url_ to_ temp_ file - Streams
urlintotemp_path. - installer_
filename - Returns the last URL path segment or
download.binwhen the URL does not expose one. - is_
7z_ path - Returns
truewhen the URL path ends in.7z, ignoring query and fragment parts. - is_
zip_ path - Returns
truewhen the URL path ends in.zip, ignoring query and fragment parts. - last_
path_ ๐segment - validate_
download_ ๐size - Validates the streamed byte count against
Content-Lengthwhen the server reports one.
Type Aliasesยง
- Client
- Blocking HTTP client used by the download helpers.