From 1fc905ad4c6320d7625d7f9bec06e70531bb0d5f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 9 Apr 2015 12:12:50 +0200 Subject: Move curl stuff into a separate file --- src/libexpr/download.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/libexpr/download.hh (limited to 'src/libexpr/download.hh') diff --git a/src/libexpr/download.hh b/src/libexpr/download.hh new file mode 100644 index 000000000000..aa4fd5083d4e --- /dev/null +++ b/src/libexpr/download.hh @@ -0,0 +1,16 @@ +#pragma once + +#include "types.hh" +#include + +namespace nix { + +struct DownloadResult +{ + bool cached; + string data, etag; +}; + +DownloadResult downloadFile(string url, string expectedETag = ""); + +} -- cgit 1.4.1