LeanHttp: a libcurl-backed synchronous HTTP client for Lean 4

hargup13 · x · 2026-09-07

theoriclabs open-sourced LeanHttp, a sync/async HTTP client for Lean 4 backed by libcurl via a small C FFI. Its API reuses Std.Http's validated methods, URIs, headers, and statuses; HTTP error statuses are ordinary responses while transport failures get typed, stable categories. Sessions reuse a single libcurl easy handle to keep connections alive, with support for timeouts, bounded response bodies, redirects, and TLS policies. Available as a git dependency (v0.3.1).

Original post →

More from coding & agent

coding & agent channel →