|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
Where a download goes, and what proves it arrived intact. More...
#include <cpp/a11/net/http/download.h>
Public Attributes | |
| std::filesystem::path | destination |
| Final path; parents are created. | |
| std::string | expected_sha1 |
| Expected SHA-1 as hex, or empty to skip verification. | |
| OnFetchProgress | on_progress |
| Optional progress callback. | |
| FetchOptions | fetch |
| Request settings; see FetchOptions. | |
Where a download goes, and what proves it arrived intact.
| std::filesystem::path a11::net::DownloadOptions::destination |
Final path; parents are created.
| std::string a11::net::DownloadOptions::expected_sha1 |
Expected SHA-1 as hex, or empty to skip verification.
When set, it is also what decides whether an existing destination counts as a cache hit, so a file truncated by an earlier crash is re-fetched rather than trusted.
| FetchOptions a11::net::DownloadOptions::fetch |
Request settings; see FetchOptions.
| OnFetchProgress a11::net::DownloadOptions::on_progress |
Optional progress callback.