server端的代码运行在远程的机器上
我们在自己的电脑上运行c++的client代码
代码结构
client.cpp
#include <iostream>
#include "httplib.h"
using namespace std;
using namespace httplib;
int main()
{
Client client("http://ubuntu机器ip:10000");
auto res = client.Get("/hello");
cout << res->status << endl;
cout << res->body << endl;
}