Download Latest Version v0.46.0 source code.tar.gz (1.9 MB)
Email in envelope

Get an email when there's a new version of cpp-httplib

Home / v0.45.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-25 1.5 kB
v0.45.1 source code.tar.gz 2026-05-25 1.9 MB
v0.45.1 source code.zip 2026-05-25 2.1 MB
Totals: 3 Items   3.9 MB 0

What's Changed

Bug fixes

  • Fix iOS build break caused by TARGET_OS_MAC being true on all Apple platforms (iOS, tvOS, watchOS). The Keychain enumeration path and Security.h include guards are now narrowed to TARGET_OS_OSX, and defining CPPHTTPLIB_USE_CERTS_FROM_MACOSX_KEYCHAIN on a non-macOS Apple platform now emits an explicit #error directing users to set_ca_cert_path() with a bundled CA file. Addresses [#2454] (#2455)
  • Fix zstd detection in the installed httplibConfig.cmake so downstream projects that depend on the installed package correctly pick up zstd (#2453)

Improvements

  • Replace the deprecated SecTrustCopyAnchorCertificates (deprecated in macOS 13) with SecTrustSettingsCopyCertificates, iterating over the System, Admin, and User trust domains to retain equivalent anchor-certificate coverage (#2455)
  • Declare Server::stop() as noexcept, reflecting that the implementation does not throw (#2451)

CI / Internal

  • Add a best-effort BoringSSL CI job (Ubuntu and macOS) that builds BoringSSL from source and exercises cpp-httplib's existing OpenSSL backend path. SSLClientServerTest.TlsVerifyHostname is now backend-aware (BoringSSL is SAN-only per RFC 6125 §6.4.4), and the README notes BoringSSL as a best-effort variant with the C++14 and SAN-only caveats (#2456)
  • Add an iOS header parse check to CI to catch accidental use of macOS-only APIs or guards (e.g. TARGET_OS_MAC vs TARGET_OS_OSX) that would silently break iOS builds (#2455)
Source: README.md, updated 2026-05-25