mcpplibs.tinyhttps
importMinimal C++23 HTTP/HTTPS client with SSE streaming support
import mcpplibs.tinyhttps;
Module name read from the upstream `export module` declaration in src/tinyhttps.cppm.
mcpp add [email protected]
Usage
From this repository's own test project — built and run by CI, not written for the website.
import std;
import mcpplibs.tinyhttps;
int main() {
using namespace mcpplibs::tinyhttps;
const auto request = HttpRequest::post("https://example.invalid/data", "{\"ok\":true}");
const auto proxy = parse_proxy_url("http://127.0.0.1:8088/path");
const auto chunk = parse_chunk_size_line("1a");
const auto invalid_chunk = parse_chunk_size_line("1x");
// 0.3.0: a status line must be one. The rejected string is the exact input
// from mcpplibs/tinyhttps#15, where leftover body bytes were mined for
// digits and reported as an ordinary 999.
const auto status = parse_status_line("HTTP/1.1 200 OK");
const auto not_a_status = parse_status_line("BBBB 999 XHTTP/1.1 200 OK");
// 0.3.0: adding fields to this aggregate left four-initialiser
// brace-initialisation working, which is the whole compatibility claim.
HttpResponse response{204, "No Content", {}, {}};
const bool ok = request.method == Method::POST
&& request.url == "https://example.invalid/data"
// …
tests/examples/tinyhttps/tests/api.cpp · project tests/examples/tinyhttps
openkal
| target | result | environment | test project | first diagnostic |
|---|---|---|---|---|
| x86_64-linux-gnu | runs | posix | tinyhttps | |
| x86_64-windows-musl | runs | posix | tinyhttps |
How this was measured
Measured 2026-09-23 by tests/openkal/compat.py with openkal-llvm-runtime 0.15.1, [email protected], mcpp 2026.9.21.3. The test project selects no platform dependency of its own. The badge above is a summary of the strictest measured target -- the table above states each target's own environment.
Build · upstream manifest
- modules
mcpplibs.tinyhttps- targets
tinyhttps (lib)- manifest version
0.3.1- dependencies
compat- source
https://raw.githubusercontent.com/mcpplibs/tinyhttps/0.3.1/mcpp.toml
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
0.3.1 latest |
LinuxWindowsmacOS | GLOBAL CN | ba998b6053d4… |
0.3.0 |
LinuxWindowsmacOS | GLOBAL CN | acb4d494bae2… |
0.2.10 |
LinuxWindowsmacOS | GLOBAL CN | 7ab1555ff465… |
0.2.9 |
LinuxWindowsmacOS | GLOBAL CN | b17e0b15d2c2… |
0.2.8 |
LinuxWindowsmacOS | GLOBAL CN | a3d72396b267… |
Show all 12 versions
0.2.7 |
LinuxWindowsmacOS | GLOBALCN | c8444d0974e8… |
0.2.6 |
LinuxWindowsmacOS | GLOBALCN | 5e0bbc4b7f20… |
0.2.5 |
LinuxWindowsmacOS | GLOBALCN | 87084c23d151… |
0.2.4 |
LinuxWindowsmacOS | GLOBALCN | e9aa33ca770b… |
0.2.3 |
LinuxWindowsmacOS | GLOBALCN | 67ff75050d31… |
0.2.2 |
LinuxWindowsmacOS | GLOBALCN | bc4cb5947582… |
0.2.1 |
LinuxWindowsmacOS | GLOBALCN | 88adc68b1c1e… |