2023-03-06 15:40:07 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <optional>
|
|
|
|
#include <future>
|
|
|
|
|
2023-11-10 16:52:20 -05:00
|
|
|
namespace utilities::http
|
2023-03-06 15:40:07 -05:00
|
|
|
{
|
|
|
|
std::optional<std::string> get_data(const std::string& url);
|
|
|
|
std::future<std::optional<std::string>> get_data_async(const std::string& url);
|
|
|
|
}
|