aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/core/file_storage/defs/downloader.h
blob: c7227f17ba0f203ef97fc929218b109de2a86d72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "provider.h"

#include <library/cpp/uri/http_url.h>

#include <util/generic/string.h>
#include <util/generic/ptr.h>

#include <tuple>

namespace NYql::NFS {

struct IDownloader : public TThrRefBase {
    virtual bool Accept(const THttpURL& url) = 0;
    virtual std::tuple<TDataProvider, TString, TString> Download(const THttpURL& url, const TString& token, const TString& etag, const TString& lastModified) = 0;
};
using IDownloaderPtr = TIntrusivePtr<IDownloader>;

} // NYql