lix/src/libexpr/download.hh

21 lines
300 B
C++
Raw Normal View History

2015-04-09 10:12:50 +00:00
#pragma once
#include "types.hh"
#include <string>
namespace nix {
struct DownloadResult
{
bool cached;
string data, etag;
};
DownloadResult downloadFile(string url, string expectedETag = "");
Path downloadFileCached(const string & url, bool unpack);
MakeError(DownloadError, Error)
2015-04-09 10:12:50 +00:00
}