diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-01-31T14·10+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-01-31T14·10+0100 |
commit | 6270b2e50f94e6686581f041d7824c9fb34da3d8 (patch) | |
tree | 5ffb7818751bccfb36dd12c2c36d2059c082c85c /src/libstore/download.hh | |
parent | f8e8dd827eb9005fcc3ba42fd0855729ef77d9fb (diff) | |
parent | 1d5d277ac7bf8a4bc601358b38746005416e935e (diff) |
Merge branch 'http-binary-cache-put-upsert' of https://github.com/adelbertc/nix
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r-- | src/libstore/download.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh index f2d65ad8d61d..0a278a05e0e1 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -18,9 +18,11 @@ struct DownloadRequest unsigned int baseRetryTimeMs = 250; ActivityId parentAct; bool decompress = true; + std::shared_ptr<std::string> data; + std::string mimeType; - DownloadRequest(const std::string & uri) - : uri(uri), parentAct(curActivity) { } + DownloadRequest(const std::string & uri, std::shared_ptr<std::string> data = nullptr, std::string mimeType = "") + : uri(uri), parentAct(curActivity), data(std::move(data)), mimeType(std::move(mimeType)) { } }; struct DownloadResult |