Move curl stuff into a separate file
This commit is contained in:
parent
c1f04fae35
commit
1fc905ad4c
3 changed files with 150 additions and 112 deletions
16
src/libexpr/download.hh
Normal file
16
src/libexpr/download.hh
Normal 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 = "");
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue