Skip to main content

Module common

Module common 

Source
Expand description

Shared download helpers reused across sources: streaming a response body to disk with hash verification, retry/backoff, and parent-directory setup.

Constants§

BACKOFF_BASE_MS
MAX_RETRIES

Functions§

ensure_parent
Ensure parent directory exists.
simple_download
Simple download: GET, stream to file, verify hash, return VerifiedFile.
stream_to_file
Stream a response body to a file, reporting progress.
stream_to_file_verified
Stream a response body to a file and verify Wabbajack-compatible hashes while bytes are still hot in memory.
verify_and_wrap
Verify hash (xxh64 then xxh3 fallback) and return a VerifiedFile.
with_retry
Execute an async operation with exponential backoff retries.