C++ Requests library using Boost
This project is maintained by Y77CH™
This page gives a good introduction in how to get started with Requests.
First, make sure that:
Let’s get started with some simple examples.
Making a request with Requests is as simple as in python.
Begin by importing the Requests module (while C++20 modules not fully supported including header instead):
#include <cq/requests.hpp>
Now, let’s try to get a webpage. For this example, let’s get GitHub’s public timeline:
auto r = Requests::get("https://api.github.com/events");
Now, we have a Requests::Response object called r. We can get all the information we need from this object.