C++的 HTTP 客户端库

1. cpp-httplib

     优点:headers only 而且 API 用起来超简单

    缺点:g++ 4.8 and below cannot build this library since <regex> in the versions are broken.

2. boost.beast

    优点:基于 boost.asio 的 boost.beast,功能强大,简单好用,headers only,可以放在自己的源代码里,不用考虑库版本迁移,并且是 boost 组件之一,将来不同系统版本乃至跨平台只要有 boost 就能直接用!

    缺点:是比较臃肿

 

 

参考:https://www.v2ex.com/t/642395

posted @ 2020-04-25 06:49  unicornsir  阅读(4710)  评论(1编辑  收藏  举报