mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Add HTTP support and update checking
This commit is contained in:
parent
2c72908f76
commit
01381ed084
104 changed files with 111355 additions and 25 deletions
12
code/cpp-httplib-0.19.0/benchmark/cpp-httplib/main.cpp
Normal file
12
code/cpp-httplib-0.19.0/benchmark/cpp-httplib/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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue