mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
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 = "");
|
||
|
|
||
|
}
|