From fa3b5090e94ee1386ca6ed6c4ddf886fa46dca54 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 27 Mar 2026 12:03:02 +0100 Subject: remove CPR HTTP client backend (#894) CPR is no longer needed now that HttpClient has fully transitioned to raw libcurl. This removes the CPR library, its build integration, implementation files, and all conditional compilation guards, leaving curl as the sole HTTP client backend. --- thirdparty/cpr/test/httpsServer.hpp | 42 ------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 thirdparty/cpr/test/httpsServer.hpp (limited to 'thirdparty/cpr/test/httpsServer.hpp') diff --git a/thirdparty/cpr/test/httpsServer.hpp b/thirdparty/cpr/test/httpsServer.hpp deleted file mode 100644 index cea4d3438..000000000 --- a/thirdparty/cpr/test/httpsServer.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef CPR_TEST_HTTPS_SERVER_H -#define CPR_TEST_HTTPS_SERVER_H - -#include -#include - -#include "abstractServer.hpp" -#include "cpr/cpr.h" -#include "mongoose.h" -#include - -namespace cpr { -class HttpsServer : public AbstractServer { - private: - // We don't use fs::path here, as this leads to problems using windows - const std::string baseDirPath; - const std::string sslCertFileName; - const std::string sslKeyFileName; - struct mg_tls_opts tlsOpts; - - public: - explicit HttpsServer(fs::path&& baseDirPath, fs::path&& sslCertFileName, fs::path&& sslKeyFileName); - ~HttpsServer() override = default; - - std::string GetBaseUrl() override; - uint16_t GetPort() override; - - void OnRequest(mg_connection* conn, mg_http_message* msg) override; - static void OnRequestHello(mg_connection* conn, mg_http_message* msg); - static void OnRequestNotFound(mg_connection* conn, mg_http_message* msg); - - const std::string& getBaseDirPath() const; - const std::string& getSslCertFileName() const; - const std::string& getSslKeyFileName() const; - - protected: - mg_connection* initServer(mg_mgr* mgr, mg_event_handler_t event_handler) override; - void acceptConnection(mg_connection* conn) override; -}; -} // namespace cpr - -#endif -- cgit v1.2.3