ImGuiTest/src/test/http_lib_test.cpp
kelson8 29dbb2b296 Add Vice City menu for testing ReVC functions and how it looks.
Add src/menus, src/util, and src/test to include path
Label most items in main_menu and vice_city_menu.
Add test for using httplib library.
Disable helpers.cpp, need to figure out how to move this stuff into here.
Add httplib.h
2025-03-13 01:56:56 -04:00

18 lines
416 B
C++

#include "http_lib_test.h"
// https://github.com/yhirose/cpp-httplib
// TODO Figure out how to add libssl and libcrypto to this
// This doesn't work
#ifdef _TEST1
#define CPPHTTPLIB_OPENSSL_SUPPORT
#include "../include/httplib.h"
httplib::Client cli("https://dashy.internal.kelsoncraft.net");
void HttpTest::test() {
auto res = cli.Get("/");
std::cout << res->status;
std::cout << res->body;
}
#endif //_TEST1