40class NetworkInterface;
41class NetworkStreamReceiver;
60 bool operator()(uint64_t downloaded, uint64_t total);
63 bool cancelKeyPressed()
const;
66 bool interactive_ =
false;
98 const std::string& url,
const std::string& filepath,
108AST_UTIL_API errc_t
aDownloadFile(
const std::string& url,
const std::string& filepath);
定义 NetworkInterface.hpp:47
定义 NetworkResponse.hpp:37
流式数据接收器
定义 NetworkStreamReceiver.hpp:44
std::function< bool(uint64_t downloaded, uint64_t total)> DownloadProgressCallback
定义 NetworkStreamReceiver.hpp:91
errc_t aDownloadFile(const std::string &url, const std::string &filepath)
下载 URL 内容并直接写入文件
定义 Network.cpp:130
errc_t aNetworkSetImpl(ENetworkImplType impltype)
定义 Network.cpp:66
ENetworkImplType
网络实现
定义 Network.hpp:44
errc_t aNetworkRequest(const NetworkRequest &request, NetworkResponse &response)
定义 Network.cpp:102
errc_t aNetworkRequestStream(const NetworkRequest &request, NetworkStreamReceiver &receiver)
定义 Network.cpp:116