|
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 :
GET
<https://nxxm.github.io/xxhr/html/namespacexxhr.html#a69bafa24d7c33b004a7de863f52b97cb>(
"http://httpbin.org/anything"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 : https://nxxm.github.io/xxhr/
GitHub :Â https://github.com/nxxm/xxhr
Example code relying on it : nxxm/gh <https://github.com/nxxm/gh>:
partial GitHub API implementation
Thanks for your time :)
-- Damien Buhl Software Developer +33 6 77 43 10 05 https://nxxm.github.io/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk