Skip to content
⌘K

cpp-httplib

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

health 92contrib 6517k

Overview & architecture

C++ standard
–
Build systems
–
License
MIT
Languages
C++
Last release
v0.67.0 · Nov 18, 2026

Repository activity

snapshot Nov 22, 2026
GitHub stars
latest
17k▲ 105
Merged PRs (30d)
latest
34▲ 34
Contributors (90d)
latest
18▲ 13
Issue first response p50
–
No snapshots yet.
0 open issues1 open PRs19 releases / year52 commits (30d)

Recent notable activity

  • Release
    cpp-httplib v0.67.0

    What's Changed Behavior changes Client: a kept-alive connection is no longer reused while bytes that belong to no request are waiting on it. The connection is closed and the next request opens a new one. Those bytes used to be read as the next request's response. As in curl, the reuse check no longer asks the TLS…

    yhirosev0.67.0
  • Release
    cpp-httplib v0.66.0

    What's Changed Bug fixes Client: a redirect now stays on the unix socket when the client uses set_address_family(AF_UNIX) (#2658). An absolute Location used to have its host taken as a socket path, so the redirect failed or went to the wrong socket. Only localhost (the Host this client sends) counts as the same host,…

    yhirosev0.66.0
  • Release
    cpp-httplib v0.65.0

    What's Changed Behavior changes Client: with set_follow_location(true), the parameters in Request::params are no longer sent again to a redirect target. The next request goes to the Location as given, as it already did for Get(path, params, ...). Server: a Range header with a unit other than bytes is ignored and the…

    yhirosev0.65.0
  • Release
    cpp-httplib v0.64.0

    What's Changed Behavior changes Several changes below alter behavior that existing code may rely on: Server: an exception handler that sets no status now answers 500 (it used to send 200 or the status the throwing handler had set). set_error_handler() therefore runs for it too. On a WebSocket upgrade, an exception…

    yhirosev0.64.0
  • Release
    cpp-httplib v0.63.0

    What's Changed Behavior changes Several fixes below change behavior that existing code may rely on: Server: a mount point serves a path only when it has no ., .. or empty segment other than a trailing /. Any other path gets 404, where such segments used to be resolved through the file system. Server:…

    yhirosev0.63.0
  • Release
    cpp-httplib v0.62.0

    What's Changed Behavior changes Several fixes below change behavior that existing code may rely on: Server: an HTTP/1.1 request without Host, a request line whose parts are not separated by a single SP, and a request-target containing # are answered with 400. Server: a Content-Length or Transfer-Encoding set by a…

    yhirosev0.62.0
  • Release
    cpp-httplib v0.61.0

    What's Changed Security-relevant fixes Match a certificate wildcard only in the leftmost label (#2619). With the Mbed TLS and wolfSSL backends, hostname verification treated a * in any label of a dNSName or CN as a wildcard, so a certificate matched hosts it does not cover. A wildcard is now honored in the leftmost…

    yhirosev0.61.0
  • Release
    cpp-httplib v0.60.1

    What's Changed Bug fixes Serve the whole body for a suffix range longer than it (#2615). A Range suffix longer than the body, such as bytes=-500 on a 100-byte body, was answered with 416. The whole body is now sent as a 206, as RFC 9110 §14.1.2 specifies. This restores the behavior before v0.15.1. bytes=-0 is still…

    yhirosev0.60.1
  • Release
    cpp-httplib v0.60.0

    What's Changed Security-relevant fixes Use the SAN type in Mbed TLS hostname verification (#2614). Mbed TLS keeps the GeneralName type of a subjectAltName entry apart from its value, and verify_hostname() looked at the value only. A dNSName whose bytes equal an address therefore authenticated that IP host, and an…

    yhirosev0.60.0
  • Release
    cpp-httplib v0.59.0

    What's Changed Security-relevant fixes Reject an invalid Content-Length and honor Connection: close. A request whose Content-Length was present but not a valid decimal length (e.g. 42, 42, +42, 0x2e or empty) was treated as having no body unless a handler read it, so the bytes after the header block were parsed as the…

    yhirosev0.59.0
  • Release
    cpp-httplib v0.58.0

    What's Changed Bug fixes Don't wait for a response to a request rejected before sending. process_request() reads the response even after write_request() fails, so that an early response (e.g. 413/414) sent while the body is still being uploaded is not lost. A request whose request line or headers are rejected while it…

    yhirosev0.58.0
  • Release
    cpp-httplib v0.57.1

    What's Changed Security-relevant fixes Reject non-token methods in the client's request line. write_request_line() checked the request target for CR/LF but wrote the method as given, so a method containing CR/LF could put a whole second request ahead of the real one, and the client would then take that request's…

    yhirosev0.57.1

Stories

ReleaseFor you

cpp-httplib v0.67.0 released

What's Changed Behavior changes Client: a kept-alive connection is no longer reused while bytes that belong to no request are waiting on it. The connection is closed and the next request opens a new one. Those bytes used to be read as the next request's response. As in curl, the reuse check no…

Why it matters: cpp-httplib is in Networking & RPC (one of your focus areas).

ReleaseFor you

cpp-httplib v0.66.0 released

What's Changed Bug fixes Client: a redirect now stays on the unix socket when the client uses set_address_family(AF_UNIX) (#2658). An absolute Location used to have its host taken as a socket path, so the redirect failed or went to the wrong socket. Only localhost (the Host this client sends)…

Why it matters: cpp-httplib is in Networking & RPC (one of your focus areas).

ReleaseFor you

cpp-httplib v0.65.0 released

What's Changed Behavior changes Client: with set_follow_location(true), the parameters in Request::params are no longer sent again to a redirect target. The next request goes to the Location as given, as it already did for Get(path, params, ...). Server: a Range header with a unit other than bytes…

Why it matters: cpp-httplib is in Networking & RPC (one of your focus areas).

ReleaseFor you

cpp-httplib v0.64.0 released

What's Changed Behavior changes Several changes below alter behavior that existing code may rely on: Server: an exception handler that sets no status now answers 500 (it used to send 200 or the status the throwing handler had set). set_error_handler() therefore runs for it too. On a WebSocket…

Why it matters: cpp-httplib is in Networking & RPC (one of your focus areas).

ReleaseFor you

cpp-httplib v0.63.0 released

What's Changed Behavior changes Several fixes below change behavior that existing code may rely on: Server: a mount point serves a path only when it has no ., .. or empty segment other than a trailing /. Any other path gets 404, where such segments used to be resolved through the file system…

Why it matters: cpp-httplib is in Networking & RPC (one of your focus areas).

ReleaseFor you

cpp-httplib v0.62.0 released

What's Changed Behavior changes Several fixes below change behavior that existing code may rely on: Server: an HTTP/1.1 request without Host, a request line whose parts are not separated by a single SP, and a request-target containing # are answered with 400. Server: a Content-Length or…

Why it matters: cpp-httplib is in Networking & RPC (one of your focus areas).

Maintainers & organizations

every claim links to its source

Maintainers

No maintainers recorded yet.

Top contributors

Releases & changelog

  • cpp-httplib v0.67.0major

    What's Changed Behavior changes Client: a kept-alive connection is no longer reused while bytes that belong to no request are waiting on it. The connection is closed and the next request opens a new one. Those bytes used to be read as the next request's response. As in curl, the reuse check no longer asks the TLS…

  • cpp-httplib v0.66.0major

    What's Changed Bug fixes Client: a redirect now stays on the unix socket when the client uses set_address_family(AF_UNIX) (#2658). An absolute Location used to have its host taken as a socket path, so the redirect failed or went to the wrong socket. Only localhost (the Host this client sends) counts as the same host,…

  • cpp-httplib v0.65.0major

    What's Changed Behavior changes Client: with set_follow_location(true), the parameters in Request::params are no longer sent again to a redirect target. The next request goes to the Location as given, as it already did for Get(path, params, ...). Server: a Range header with a unit other than bytes is ignored and the…

  • cpp-httplib v0.64.0major

    What's Changed Behavior changes Several changes below alter behavior that existing code may rely on: Server: an exception handler that sets no status now answers 500 (it used to send 200 or the status the throwing handler had set). set_error_handler() therefore runs for it too. On a WebSocket upgrade, an exception…

  • cpp-httplib v0.63.0major

    What's Changed Behavior changes Several fixes below change behavior that existing code may rely on: Server: a mount point serves a path only when it has no ., .. or empty segment other than a trailing /. Any other path gets 404, where such segments used to be resolved through the file system. Server:…

  • cpp-httplib v0.62.0major

    What's Changed Behavior changes Several fixes below change behavior that existing code may rely on: Server: an HTTP/1.1 request without Host, a request line whose parts are not separated by a single SP, and a request-target containing # are answered with 400. Server: a Content-Length or Transfer-Encoding set by a…

  • cpp-httplib v0.61.0major

    What's Changed Security-relevant fixes Match a certificate wildcard only in the leftmost label (#2619). With the Mbed TLS and wolfSSL backends, hostname verification treated a * in any label of a dNSName or CN as a wildcard, so a certificate matched hosts it does not cover. A wildcard is now honored in the leftmost…

  • cpp-httplib v0.60.1

    What's Changed Bug fixes Serve the whole body for a suffix range longer than it (#2615). A Range suffix longer than the body, such as bytes=-500 on a 100-byte body, was answered with 416. The whole body is now sent as a 206, as RFC 9110 §14.1.2 specifies. This restores the behavior before v0.15.1. bytes=-0 is still…

  • cpp-httplib v0.60.0major

    What's Changed Security-relevant fixes Use the SAN type in Mbed TLS hostname verification (#2614). Mbed TLS keeps the GeneralName type of a subjectAltName entry apart from its value, and verify_hostname() looked at the value only. A dNSName whose bytes equal an address therefore authenticated that IP host, and an…

  • cpp-httplib v0.59.0major

    What's Changed Security-relevant fixes Reject an invalid Content-Length and honor Connection: close. A request whose Content-Length was present but not a valid decimal length (e.g. 42, 42, +42, 0x2e or empty) was treated as having no body unless a handler read it, so the bytes after the header block were parsed as the…

  • cpp-httplib v0.58.0major

    What's Changed Bug fixes Don't wait for a response to a request rejected before sending. process_request() reads the response even after write_request() fails, so that an early response (e.g. 413/414) sent while the body is still being uploaded is not lost. A request whose request line or headers are rejected while it…

  • cpp-httplib v0.57.1

    What's Changed Security-relevant fixes Reject non-token methods in the client's request line. write_request_line() checked the request target for CR/LF but wrote the method as given, so a method containing CR/LF could put a whole second request ahead of the real one, and the client would then take that request's…

  • cpp-httplib v0.57.0major

    What's Changed Security-relevant fixes Reject control characters in the chunk-size line (#2585). ChunkedDecoder::read_payload() checked only the first byte after the chunk-size, and getline() reads up to the CRLF, so a bare LF (or CR, or any other control byte) after the size or inside a chunk-ext was swallowed as…

  • cpp-httplib v0.56.0major

    What's Changed New features: WebSocket read timeout ws::WebSocket::read() now reports a read timeout you set yourself as the new ReadResult::Timeout, and leaves the connection open. Previously every failure, a timeout included, returned Fail and marked the connection closed, so a read timeout could not be used to get…

  • cpp-httplib v0.54.1

    What's Changed Bug fixes Reject Digest challenges that omit realm or nonce (RFC 7616 §3.3). parse_www_authenticate() accepted any WWW-Authenticate: Digest challenge that carried at least one auth-param, so a response such as Digest qop="auth" was treated as usable. make_digest_authentication_header() then dereferences…

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement. Contribution scanning is off for this project.

Why this score

Health 92Contribution friendliness 65computed 19h ago
  • Activity0.98
    34 merged PRs in 30 days (full marks at 20); 52 commits in 30 days (full marks at 60) [health score: no data for backlog pressure; weights renormalized]health
  • Onboarding0.25
    has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs site [contrib score: no data for entry points; weights renormalized]contrib
  • Maintainer responsiveness1.00
    median PR merge time 9 h (full marks within 72 h, zero after 60 days) [health score: no data for backlog pressure; weights renormalized] [contrib score: no data for entry points; weights renormalized]healthcontrib
  • Release cadence1.00
    last release 4 days ago (full marks within 90, zero after 730); 19 releases in 365 days (full marks at 4) [health score: no data for backlog pressure; weights renormalized]health
  • Contributor breadth0.65
    18 unique contributors in 90 days (full marks at 25); top contributor has 89% of commits; stars count for at most 5% of this signal [health score: no data for backlog pressure; weights renormalized]health

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.