about summary refs log blame commit diff
path: root/src/libexpr/download.hh
blob: 65396e5de32915baea8ff7497eb84c59a4cefaac (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                  

                               
 
#pragma once

#include "types.hh"
#include <string>

namespace nix {

struct DownloadResult
{
    bool cached;
    string data, etag;
};

DownloadResult downloadFile(string url, string expectedETag = "");

MakeError(DownloadError, Error)

}