Overview · Contributing · License
Fetchpp is a C++17 asynchronous HTTP client written on top of Boost Beast and ASIO.
It closely follows ASIO API recommendations and style. This allows Fetchpp API to be used with callbacks, std::future, coroutines and more.
#include <fetchpp/get.hpp>
#include <iostream>
int main()
{
boost::asio::io_context ioc;
fetchpp::async_get(ioc.get_executor(),
"http://httpbin.org/get",
[](auto err, auto response) {
if (err)
std::cerr << err.message() << std::endl;
std::cout << response.result_int() << std::endl;
});
ioc.run();
return 0;
}
We welcome feedback. Feel free to open any issue on the Github bug tracker.
Fetchpp is licensed under the Apache License, version 2.0.