目录
libevhtp
code:
https://github.com/Yellow-Camper/libevhtp
在2019/2/6停止更新
介绍使用的文章:Libevhtp小试牛刀——使用Libevhtp实现http服务 - 简书
使用步骤:
- 创建一个 parent evhtp_t 结构。
- Assign callbacks to the parent for specific URIs or posix-regex based URI's(设置特定的URIs)。
- (可选)为回调函数声明连接前的hooks。
- (可选)声明连接前、后的回调函数。
- (可选)开启内置的线程池处理连接。
- (可选)设置服务类型为HTTPS方式。
- 开始evhtp服务监听。
mongoose
code: https://github.com/cesanta/mongoose
document: https://cesanta.com/docs/overview/intro.html
一篇介绍的使用的文章: C++ http服务 - pcwen.top - 博客园
本文介绍了两种流行的HTTP服务库:libevhtp与mongoose。libevhtp提供了灵活的回调机制和线程池支持,但已停止更新。mongoose则持续维护,提供丰富的文档支持和便捷的功能。两者均可用于搭建高性能HTTP服务。
11万+

被折叠的 条评论
为什么被折叠?



