国外提供参考的c++ http lib or server

C++ REST SDK Alternatives - C++ Networking | LibHunt

众所周知,C++ 并不是一种流行的 Web 开发语言,但随着 Emscripten 的成熟,未来 C++ 在 Web 方面会发挥更大的潜能,尤其是游戏、3D 应用等方面。

有关 C++ Web 相关的框架有不少,下面进行了简单的整理,并按照“Star”的数量进行了排序,希望能对大家有所帮助。

  1. Drogon
    Drogon 是一个基于 C++14/17 的 Http 应用框架,使用 Drogon 可以方便的使用 C++ 构建各种类型的 Web 应用服务端程序。
    Star:8.1k
    GitHub:​​https://github.com/an-tao/drogon​
  2. Proxygen
    Proxygen 是 Facebook 开发的一个 C++ 的 HTTP 库,包含一个易用的 HTTP 服务器。支持 HTTP/1.1、SPDY 3 和 SPDY 3.1,同时也开始在为 HTTP/2 做开发。
    Star:7.7 k
    GitHub:​​https://github.com/facebook/proxygen​
  3. cpprestsdk C++ REST SDK
    C++ REST SDK 是微软发布的一个 C++ 客户端-服务器通信库,该库基于 Modern C++ 异步 API,开发者可以方便地连接并与服务交互。
    Star:7.1k
    主页:https://microsoft.github.io/cpprestsdk/index.html
    GitHub:​​https://github.com/microsoft/cpprestsdk​​ 文档:https://github.com/Microsoft/cpprestsdk/wiki
  4. Crow
    Crow 是一个非常快速和易于使用的 C++ 微型 Web 框架(灵感来自于 Python Flask)
    Star:7k
    GitHub:​​https://github.com/ipkn/crow​
  5. Oat++
    Oat++ 是一个纯 C++ 实现的 Web 开发框架,高性能、简单的 API、跨平台、零依赖。
    Star:5.8k
    主页:https://oatpp.io/
    GitHub:​​https://github.com/oatpp/oatpp​​ 文档:​​https://oatpp.io/docs/start/​
  6. libhv
    比libevent、libuv更易用的网络库。A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket/MQTT client/server.
    Star:4.8k
    ​https://github.com/ithewei/libhv​
  7. Pistache
    Pistache 是一个现代而优雅的 C++ HTTP 和 REST 框架,完全采用纯 C++ 14 编写,并提供了一个清晰、友好的 API。
    Star:2.8k
    主页:http://pistache.io/
    GitHub:​​https://github.com/oktal/pistache/​​ 文档:http://pistache.io/guide/
  8. Silicon
    Silicon 是一个高性能、面向中间件的 C++ 14 http Web 框架。
    Star:1.7k
    主页:http://siliconframework.org/
    GitHub:https://github.com/matt-42/silicon/
    文档:http://siliconframework.org/docs/getting_started.html

简单实用:​​https://github.com/shouxieai/http_server_cpp​