Registry / web-framework / cpp-httplib

cpp-httplib

JSON →
library0.46.1vcpkgunverified

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

vcpkg install cpp-httplib
INSTALL
IMPORT
SIG · CPP-HTTPLIB
C
cpp-httplib
web-frameworkcppv0.46.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httplib.h
#include <httplib.h>

Simple HTTP server

#include <httplib.h> #include <iostream> int main() { httplib::Server svr; svr.Get("/", [](const httplib::Request&, httplib::Response& res) { res.set_content("Hello World!", "text/plain"); }); svr.listen("0.0.0.0", 8080); }
Debug
Known issues
gotchaHTTPS support requires OpenSSL; must be enabled at build time.
fix
Set CPPHTTPLIB_OPENSSL_SUPPORT=ON when building or using vcpkg.
affects: *
Upgrade
Version history
0.46.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

cpp-httplib — pip install cpp-httplib · libregistry