qtrocket/utils/CurlConnection.h
Travis Hunter e6bf1fea9b
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc-13, g++-13, ubuntu-latest) (push) Has been cancelled
Revert "Merge pull request #20 from cthunter01/propagator"
This reverts commit 6280d9fb0184275843a8f4406c7293e41e65a639, reversing
changes made to 3c9c8b8c6a2b2e7430ff09efdc2cc0c1996b16ca.
2025-04-16 18:23:28 -06:00

34 lines
466 B
C++

#ifndef UTILS_CURLCONNECTION_H
#define UTILS_CURLCONNECTION_H
/// \cond
// C headers
#include <curl/curl.h>
// C++ headers
#include <string>
#include <vector>
// 3rd party headers
/// \endcond
namespace utils {
class CurlConnection
{
public:
CurlConnection();
std::string get(const std::string& url, const std::vector<std::string>& extraHttpHeaders);
private:
CURL* curl;
CURLcode res;
};
} // namespace utils
#endif // UTILS_CURLCONNECTION_H