diff options
| author | Stefan Boberg <[email protected]> | 2026-03-27 12:03:02 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-27 12:03:02 +0100 |
| commit | fa3b5090e94ee1386ca6ed6c4ddf886fa46dca54 (patch) | |
| tree | c574405fc12dd2af9fcb02353df10adb29587f6c /thirdparty/cpr/test/httpsServer.hpp | |
| parent | idle deprovision in hub (#895) (diff) | |
| download | zen-fa3b5090e94ee1386ca6ed6c4ddf886fa46dca54.tar.xz zen-fa3b5090e94ee1386ca6ed6c4ddf886fa46dca54.zip | |
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.
Diffstat (limited to 'thirdparty/cpr/test/httpsServer.hpp')
| -rw-r--r-- | thirdparty/cpr/test/httpsServer.hpp | 42 |
1 files changed, 0 insertions, 42 deletions
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 <memory> -#include <string> - -#include "abstractServer.hpp" -#include "cpr/cpr.h" -#include "mongoose.h" -#include <cpr/filesystem.h> - -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 |