Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 698 Bytes

File metadata and controls

33 lines (24 loc) · 698 Bytes

mcpplibs-tinyhttps

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"})"
));

License

Apache-2.0