summaryrefslogtreecommitdiff
path: root/libs/cpp-httplib/benchmark/cpp-httplib/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cpp-httplib/benchmark/cpp-httplib/main.cpp')
-rw-r--r--libs/cpp-httplib/benchmark/cpp-httplib/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/cpp-httplib/benchmark/cpp-httplib/main.cpp b/libs/cpp-httplib/benchmark/cpp-httplib/main.cpp
new file mode 100644
index 0000000..ab2e757
--- /dev/null
+++ b/libs/cpp-httplib/benchmark/cpp-httplib/main.cpp
@@ -0,0 +1,12 @@
+#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);
+}