diff options
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r-- | src/libstore/download.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh index 28c9117e4..aff109ee7 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -5,13 +5,19 @@ namespace nix { +struct DownloadOptions +{ + string expectedETag; + bool verifyTLS{true}; +}; + struct DownloadResult { bool cached; string data, etag; }; -DownloadResult downloadFile(string url, string expectedETag = ""); +DownloadResult downloadFile(string url, const DownloadOptions & options); Path downloadFileCached(const string & url, bool unpack); |