mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'data' argument to http error callback
This commit is contained in:
parent
20c5edb495
commit
7d6ddfa535
5 changed files with 35 additions and 37 deletions
|
|
@ -16,7 +16,7 @@ TEST(curltest, curltest) {
|
|||
auto view = std::string_view(data.data(), data.size());
|
||||
auto value = json::parse(view);
|
||||
std::cout << value << std::endl;
|
||||
}, [](auto){}
|
||||
}, [](auto, auto){}
|
||||
);
|
||||
std::cout << "upload: " << network->getTotalUpload() << " B" << std::endl;
|
||||
std::cout << "download: " << network->getTotalDownload() << " B" << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue