Requests

C++ Requests library using Boost

Documentation

This project is maintained by Y77CH™

Quickstart

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.

Make a Request

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.

Request options