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
18 lines
416 B
C++
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
|