# yhirose/cpp-httplib

A C++ header-only HTTP/HTTPS server and client library

Repository: https://github.com/yhirose/cpp-httplib
Canonical: https://ross.abutalabs.com/products/cpp-httplib
Homepage: https://yhirose.github.io/cpp-httplib/
Language: C++
License: MIT
License Family: permissive
Topics: cpp, cpp11, http, https, header-only
Last push: 2026-08-26T05:20:25+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 5094, "days_push": 7, "days_rel": 19, "gap_med": 7.0, "n_releases_24m": 61}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 16780, forks 2743 (observed 2026-08-28T04:11:17.256145+00:00)

## What it is
A C++11 single-file header-only HTTP/HTTPS server and client library supporting HTTP/1.1 with SSL/TLS via OpenSSL, MbedTLS, or wolfSSL. It also offers Server-Sent Events and WebSocket support with a simple blocking-socket API.

## Use cases
- embed an http server in a c++ application
- make http requests from c++ without heavy dependencies
- add a simple rest api to a native app
- serve https with tls in c++
- single-header http library for c++

## When to choose
- you want a drop-in single header with no build system changes
- you need both client and server in one lightweight library
- you only need HTTP/1.1 and blocking I/O is acceptable

## When to avoid
- you need HTTP/2 or HTTP/3
- you need non-blocking or asynchronous socket I/O
- you target 32-bit platforms

## Facets
- artifact type: library
- maturity: active
- function: http-server, http-client, websocket
- domain: web-development, backend, apis
- platform: cpp, cross-platform
- tags: header-only, http-1-1, ssl-tls, server-sent-events

## Member repositories
- yhirose/cpp-httplib (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:17.256145+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:04:15.735824+00:00, confidence not recorded.
  - readme: https://github.com/yhirose/cpp-httplib (fetched 2026-08-28T04:11:17.256145+00:00, sha 69345fa73f46)
  - homepage: https://yhirose.github.io/cpp-httplib/ (fetched 2026-08-29T08:01:50.415059+00:00, sha 19e26e1132fd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
