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.
|
| Detected |
Version |
Rev |
Change |
Commit |
| Jan 17, 2025 2:15am |
|
0 |
VERSION_BUMP |
f4746b97 |
| Sep 13, 2024 2:59am |
|
0 |
VERSION_BUMP |
abbd780d |
| Sep 1, 2024 12:30pm |
|
0 |
VERSION_BUMP |
c4af225c |
| Aug 6, 2024 10:17pm |
|
0 |
VERSION_BUMP |
fa34dfe5 |
| Aug 6, 2024 9:26pm |
|
0 |
VERSION_BUMP |
2ab8e31e |
| Feb 6, 2024 3:28am |
|
0 |
VERSION_BUMP |
fcd559e5 |
| Feb 3, 2024 7:46am |
|
0 |
VERSION_BUMP |
a6362d8c |
| Jan 29, 2024 3:31pm |
|
0 |
VERSION_BUMP |
ecb8812d |
| Dec 22, 2023 3:30am |
|
0 |
VERSION_BUMP |
7c730edd |
| Oct 1, 2023 5:48am |
|
0 |
VERSION_BUMP |
13c8f34e |
| Mar 11, 2023 2:31am |
|
0 |
VERSION_BUMP |
d0ee02d5 |
| Mar 11, 2023 2:31am |
|
0 |
VERSION_BUMP |
a574a12f |
| Feb 8, 2023 12:26am |
|
0 |
VERSION_BUMP |
8b2f9bc9 |
| Feb 8, 2023 12:26am |
|
0 |
VERSION_BUMP |
bdfecff1 |
| Jan 11, 2023 12:13am |
|
0 |
VERSION_BUMP |
7e5c5b2c |
| Jan 11, 2023 12:13am |
|
0 |
VERSION_BUMP |
c410baf3 |
|