mcpplibs-tinyhttps
May 12, 2026 · View on GitHub
Minimal C++23 HTTP/HTTPS client library with SSE (Server-Sent Events) streaming support. Uses mbedTLS for TLS, zero external dependencies beyond that.
Features
- HTTP/HTTPS client with connection pooling (keep-alive)
- SSE (Server-Sent Events) streaming
- Proxy support (HTTP CONNECT)
- C++23 modules
Usage
-- xmake.lua
add_requires("mcpplibs-tinyhttps")
target("myapp")
add_packages("mcpplibs-tinyhttps")
import mcpplibs.tinyhttps;
auto client = mcpplibs::tinyhttps::HttpClient({});
auto resp = client.send(mcpplibs::tinyhttps::HttpRequest::post(
"https://api.example.com/data",
R"({"key": "value"})"
));
使用 mcpp 构建
添加依赖
mcpp add tinyhttps@0.2.2
或在 mcpp.toml 中手动添加:
[dependencies]
tinyhttps = "0.2.2"
构建
mcpp build
代码示例
import mcpplibs.tinyhttps;
// ... usage example
License
Apache-2.0