aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/filetransfer.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-06-16 18:03:50 +0200
committerGitHub <noreply@github.com>2023-06-16 18:03:50 +0200
commite503eadafc5fb79dabcca161aa3bf41a4fb777a5 (patch)
tree8b0464d9e29a7e5245c8e921c6623f5cedfa31a2 /src/libstore/filetransfer.hh
parent713836112c1e0f83af38a2273d5f32d52f4a4808 (diff)
parentb1ed9b4b0cc037a8b14dcc37fd32f6a5a16e7ba3 (diff)
Merge pull request #8477 from edolstra/tarball-flake-redirects
Tarball flake improvements
Diffstat (limited to 'src/libstore/filetransfer.hh')
-rw-r--r--src/libstore/filetransfer.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/filetransfer.hh b/src/libstore/filetransfer.hh
index 378c6ff78..a3b0dde1f 100644
--- a/src/libstore/filetransfer.hh
+++ b/src/libstore/filetransfer.hh
@@ -80,6 +80,10 @@ struct FileTransferResult
std::string effectiveUri;
std::string data;
uint64_t bodySize = 0;
+ /* An "immutable" URL for this resource (i.e. one whose contents
+ will never change), as returned by the `Link: <url>;
+ rel="immutable"` header. */
+ std::optional<std::string> immutableUrl;
};
class Store;