Registry / web-framework / libevhtp

libevhtp

JSON →
library1.2.18vcpkgunverified

Libevhtp was created as a replacement API for Libevent's current HTTP API.

vcpkg install libevhtp
INSTALL
IMPORT
SIG · LIBEVHTP
L
libevhtp
web-frameworkcppv1.2.18
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.

evhtp.h
#include <evhtp.h>

Create an HTTP server using libevhtp

#include <evhtp.h> #include <event2/event.h> int main() { struct event_base *evbase = event_base_new(); evhtp_t *htp = evhtp_new(evbase, NULL); evhtp_set_cb(htp, "/hello", [](evhtp_request_t *req, void *) { evhtp_send_reply(req, EVHTP_RES_OK); }, NULL); evhtp_bind_socket(htp, "0.0.0.0", 8080, 1024); event_base_loop(evbase, 0); return 0; }
Debug
Known issues
gotchaRequires linking with libevent and pthreads
fix
target_link_libraries(myapp evhtp::evhtp event::core pthread)
affects: *
Upgrade
Version history
1.2.18latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources

No resource links recorded.

libevhtp — pip install libevhtp · libregistry