Installation
Add libxev-http to your project using git submodules:
git submodule add https://github.com/mitchellh/libxev.git libxev
Try Examples
Run the example server to see libxev-http in action:
# Clone and run
git clone <repository-url>
cd libxev-http
zig build run-basic
Build Your Server
Create your first HTTP server with middleware and routing:
const server = try libxev_http.createServer(allocator, "127.0.0.1", 8080);
try server.use("logging", libxev_http.loggingMiddleware);
_ = try server.get("/", indexHandler);
try server.listen();