/* g++ -o main main.cpp -std=c++11 -lwfrest -lworkflow -lz -Wl,-rpath=/usr/local/lib */ #include "wfrest/HttpServer.h" #include #include #include #include #include #include #include "ztool.hpp" using namespace wfrest; int main(){ HttpServer sv; sv.GET("/",[](const HttpReq *req,HttpResp *resp)->void{ resp->String("Hello "+ +" !"); }); if (sv.start(8888)==0) { getchar(); sv.stop(); }else { fprintf(stderr,"Cannot open port 8888 and start the server!!"); } }