Getting started¶
This section takes you from a checkout to a running server, then points to the next guide for each common task.
Prerequisites¶
aeronet requires a C++23 compiler and CMake 3.28 or newer. Linux is the primary platform; macOS and Windows are also supported through the same public API. The complete toolchain matrix and package-manager instructions are in Installation and build.
Choose the features you need¶
The core build is intentionally modular. Enable optional capabilities at CMake configure time:
AERONET_ENABLE_OPENSSLfor TLS and HTTPS.AERONET_ENABLE_HTTP2for HTTP/2, including ALPN and h2c.AERONET_ENABLE_WEBSOCKETfor RFC 6455 endpoints.AERONET_ENABLE_ASYNC_HANDLERSfor coroutine handlers.AERONET_ENABLE_OPENTELEMETRY,AERONET_ENABLE_GLAZE, and the JWT option when your application needs them.
The configuration reference explains the feature gates and their dependencies.
Recommended learning path¶
- Follow Your first server to run a route on port 8080.
- Read Routing and requests to add paths, parameters, and request handling.
- Choose Middleware and responses or Bodies, streaming, and static files according to the response model you need.
- Add a protocol module when needed: TLS and HTTP/2, WebSocket, or the HTTP client and JWT guide.
Tip
The repository's examples directory is the best source for complete, buildable programs. The guides focus on how the pieces fit together and link to those executable examples.