http-server

时间:2024-04-09 00:05:40
【文件属性】:

文件名称:http-server

文件大小:56KB

文件格式:ZIP

更新时间:2024-04-09 00:05:40

C++

HTTP服务器 Http-server是一个异步HTTP服务器C ++库,使用epoll和C ++ 20协程构建。该存储库还包含示例便笺共享应用程序构建。 代码示例: # include " HttpServer.h " # include " Validators.h " # include < nlohmann> using json = nlohmann::json; // ... int main () { HttpServer server; server. post ( " /users/{userId}/notes/{noteId} " , Validators::bodyStringMaxLength ( " /content " _json_pointer, maxNoteLength),


【文件预览】:
http-server-master
----.gitignore(3KB)
----app()
--------client()
--------server()
----.gitmodules(108B)
----.github()
--------workflows()
----README.md(2KB)
----http-server()
--------minimalExample.cpp(1KB)
--------include()
--------CMakeLists.txt(377B)
----thirdparty()
--------json()
----.vscode()
--------c_cpp_properties.json(436B)
----CMakeLists.txt(616B)
----build_frontend.sh(227B)

网友评论