Yes you read this right, Boost finally got internal wget/curl (almost)!
But better read an article from Boost.Beast maintainer - Richard Hodges. Basically this repository just packs his code into a library.
- Boost 1.75
- OpenSSL
Regular cmake build:
mkdir build; cd build; cmake .. && cmake --build . -j 8
If you need just library and no demo tools pass -DBUILD_TOOLS=OFF
to cmake.
cmake --install . # from the build directory
It will install static library and tools.
http::connection_cache cache(co_await net::this_coro::executor);
auto result = co_await cache.call(http::verb::get, "https://yourwebhost.com");
std::cout << result->body();
// don't forget to catch exceptions