Donetsk/hook_lib/common/utils/http.hpp

14 lines
276 B
C++
Raw Normal View History

2023-10-09 12:12:37 -04:00
#pragma once
#include <string>
#include <optional>
#include <future>
#pragma comment(lib, "Urlmon.lib")
namespace utils::http
{
std::optional<std::string> get_data(const std::string& url);
std::future<std::optional<std::string>> get_data_async(const std::string& url);
}