Overview of the HttpSrv Module
mainThe httpsrv module provides an HTTP server over Unix Domain Sockets (UDS) for the Wazuh engine's internal API. It is built on top of cpp-httplib and manages route registration, request dispatching, payload size enforcement, and lifecycle management (start/stop).
The engine typically runs two distinct server instances:
- API services: Handles management, metrics, geo, etc.
- Event ingestion: Handles incoming events (e.g.,
/events/enriched).