#include <model_download.hpp>
Public Attributes | |
| std::string | url |
| http(s)://… (resolve hf:// first). | |
| std::filesystem::path | dest |
| Final destination path. | |
| std::string | expected_sha256 |
| Hex digest the finished file must match. | |
| std::vector< HttpHeader > | headers |
| Extra request headers (e.g. Authorization). | |
| bool | resume = true |
| Resume from a prior partial <dest>.part via Range. | |
| int | timeout_seconds = 0 |
| 0 ⇒ a sensible library default. | |
| bool | allow_unverified = false |
| An empty expected_sha256 means nothing can vouch for the bytes, so the download is refused (DownloadResult::unverified) unless the caller opts in here. | |
| bool pulp::runtime::DownloadRequest::allow_unverified = false |
An empty expected_sha256 means nothing can vouch for the bytes, so the download is refused (DownloadResult::unverified) unless the caller opts in here.
Opting in still records the digest the transfer produced.
| std::filesystem::path pulp::runtime::DownloadRequest::dest |
Final destination path.
| std::string pulp::runtime::DownloadRequest::expected_sha256 |
Hex digest the finished file must match.
| std::vector<HttpHeader> pulp::runtime::DownloadRequest::headers |
Extra request headers (e.g. Authorization).
| bool pulp::runtime::DownloadRequest::resume = true |
Resume from a prior partial <dest>.part via Range.
| int pulp::runtime::DownloadRequest::timeout_seconds = 0 |
0 ⇒ a sensible library default.
| std::string pulp::runtime::DownloadRequest::url |
http(s)://… (resolve hf:// first).