Boost logo

Boost :

Subject: [boost] Boost xxhr ? High level http client library
From: Damien Buhl (damien.buhl_at_[hidden])
Date: 2018-09-28 08:58:41

Dear Boost,

I've built an header-only library based on Boost.Beast which allows you
to perform HTTP requests.

It is implememented with two backends :

  * Boost.Beast for native builds.
  * XmlHttpRequest for WebAssembly (plans to migrate to fetch API which
    is richer)

Actually Boost.Beast is a great lib, however it's API is thought to
build HTTP centric app not just to make some simple HTTP call ( as for
example urdl was ). xxhr on the other hand is about making it simple to
call an HTTP service.

Usage example :

""s, on_response = [](auto&& resp) {
   std::cout << resp.text;

I would be really interested in a pre-review or some feedback about it's
API. The implementation merits more attention and can significantly be
improved but this email is to grab a first feedback from the community.

Documentation :
GitHub :

Example code relying on it : nxxm/gh <>:
partial GitHub API implementation

Thanks for your time :)

Damien Buhl
Software Developer
+33 6 77 43 10 05

Boost list run by bdawes at, gregod at, cpdaniel at, john at