You've already forked cpp-httplib
Update benchmark
This commit is contained in:
9955
benchmark/cpp-httplib-base/httplib.h
Normal file
9955
benchmark/cpp-httplib-base/httplib.h
Normal file
File diff suppressed because it is too large
Load Diff
12
benchmark/cpp-httplib-base/main.cpp
Normal file
12
benchmark/cpp-httplib-base/main.cpp
Normal file
@ -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);
|
||||
}
|
Reference in New Issue
Block a user