openmohaa/code/cpp-httplib-0.19.0/benchmark/cpp-httplib-base/main.cpp

13 lines
220 B
C++
Raw Normal View History

2025-02-23 21:30:56 +01:00
#include "./httplib.h"
using namespace httplib;
int main() {
Server svr;
svr.Get("/", [](const Request &, Response &res) {
res.set_content("Hello World!", "text/plain");
});
svr.listen("0.0.0.0", 8080);
}