forked from lix-project/lix
17 lines
208 B
C++
17 lines
208 B
C++
|
#pragma once
|
||
|
|
||
|
#include "types.hh"
|
||
|
#include <string>
|
||
|
|
||
|
namespace nix {
|
||
|
|
||
|
struct DownloadResult
|
||
|
{
|
||
|
bool cached;
|
||
|
string data, etag;
|
||
|
};
|
||
|
|
||
|
DownloadResult downloadFile(string url, string expectedETag = "");
|
||
|
|
||
|
}
|