Xpress++ v2.0.0
Modern C++ Web Framework — Fast, Lightweight & Developer-Friendly. Inspired by Express.js and powered by modern C++ networking.
Why Xpress++?
- High Performance: Built for speed with modern C++.
- Express-like API: Familiar, clean, and productive.
- Secure by Default: Built-in security headers & CSP.
- Feature Rich: Caching, auth, files, SSE, metrics.
- Production Ready: Stable & battle-tested core.
Installation
Clone the repository and build Xpress++ using CMake.
Quick Example
A minimal example showing how to create a web server with Xpress++.
Core API Reference
Application
app.get(path, handler) | Handle GET requests. |
app.post(path, handler) | Handle POST requests. |
app.all("*") | Wildcard routes. |
Request Helpers
req.getBearerToken()req.isAuthenticated()req.accepts(type)- Mobile & XHR detection
Response Helpers
res.json()res.success()res.error()res.redirect()res.download()res.sse()res.paginate()
Advanced Features
Server Configuration