iw3sp-mod/src/Utils/HTTP.hpp
2024-03-12 22:41:56 +03:00

12 lines
298 B
C++

#pragma once
namespace Utils
{
class HTTP
{
public:
using headers = std::unordered_map<std::string, std::string>;
static std::optional<std::string> GetData(const std::string& url, const headers& headers, const std::function<void(size_t, size_t, size_t)>& callback, bool downloading);
};
}