Move curl stuff into a separate file

This commit is contained in:
Eelco Dolstra 2015-04-09 12:12:50 +02:00
parent c1f04fae35
commit 1fc905ad4c
3 changed files with 150 additions and 112 deletions

16
src/libexpr/download.hh Normal file
View file

@ -0,0 +1,16 @@
#pragma once
#include "types.hh"
#include <string>
namespace nix {
struct DownloadResult
{
bool cached;
string data, etag;
};
DownloadResult downloadFile(string url, string expectedETag = "");
}