xxhr : c++ http requests

A simple, yet modern, http client library, all dependencies included !

API: asynchronously intuitive

#include <iostream>
#include <xxhr/xxhr.hpp>
void introductory() {
using namespace xxhr;
GET( "http://httpbin.org/anything"s,
on_response = [](auto reply) { std::cout << reply.text; }
);
}

GETting Started

{
"nxxm/xxhr" : { "@" : "v1.0.1" }
}

Platforms

pipeline status

  • WebAssembly
  • macOS
  • Linux
  • Windows

Motivation

http[s] queries made async & easy for C++ developer.

The API is exclusively async

  • to target all modern platforms and runtimes ( e.g. Mobile OS, Web Browser, Windows 10... ).
  • to build responsive UIs.

Pure & modern, this header-only C++ library is available for WebAssembly and on all C++ compatible platforms.

Key Principles

  • Just headers files.
  • Dependencies shipped: nxxm ..
  • Async API.
  • Extremely cross-platform : Native or WebAssembly.
  • Performant, easy to setup & learn !
xxhr::on_response
constexpr make_handler_t< on_response_ > on_response
Continuation callback ( i.e. signature : void callback(xxhr::Response)) for the asynchronous HTTP ope...
Definition: handler.hpp:39
xxhr::GET
void GET(Ts &&... ts)
HTTP GET Request.
Definition: api.hpp:41
xxhr
main library namespace
Definition: api.hpp:20