A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::net::DownloadOptions Struct Reference

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.
 

Detailed Description

Where a download goes, and what proves it arrived intact.

Member Data Documentation

◆ destination

std::filesystem::path a11::net::DownloadOptions::destination

Final path; parents are created.

◆ expected_sha1

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.

◆ fetch

FetchOptions a11::net::DownloadOptions::fetch

Request settings; see FetchOptions.

◆ on_progress

OnFetchProgress a11::net::DownloadOptions::on_progress

Optional progress callback.


The documentation for this struct was generated from the following file: