cpp-httplib
« Back to VersTracker
Description:
C++ header-only HTTP/HTTPS server and client library
Type: Formula  |  Latest Version: 0.28.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Networking
Tags: http https server client header-only networking
Install: brew install cpp-httplib
About:
cpp-httplib is a single-file, header-only C++ library for building HTTP and HTTPS servers and clients. It leverages C++11's variadic templates and std::regex for a clean, easy-to-use API. Its primary value is providing robust networking capabilities without the complexity of linking against external dependencies.
Key Features:
  • Zero-dependency, header-only integration
  • Supports both HTTP and HTTPS (via OpenSSL)
  • Multithreaded and synchronous request handling
  • Simple API for routing and middleware
  • Built-in support for static file serving
Use Cases:
  • Rapidly prototyping backend APIs in C++
  • Embedding a lightweight web server into desktop applications
  • Creating simple microservices or internal tools
Alternatives:
  • Boost.Beast – Part of the Boost library; more powerful but significantly heavier and requires linking against Boost.
  • Pistache – A modern C++ HTTP/HTTPS network library; asynchronous by design but requires separate installation.
Version History
Detected Version Rev Change Commit
Jan 17, 2025 2:15am 0 VERSION_BUMP f4746b97
Sep 13, 2024 2:59am 0 VERSION_BUMP abbd780d