aaryan359/xpresspp ? reverse-engineered prompt
Reverse engineered prompt
Build me a C++ web framework called Xpress++ that makes it easy to create HTTP APIs with an Express style feel, but on top of Drogon for speed.
I want a clean app API where I can define routes like GET, POST, PUT, PATCH, DELETE, use route groups, read params, query strings, headers, cookies, JSON bodies, and send back text, HTML, JSON, files, downloads, redirects, and status based responses. Please include built in middleware for things like logging, CORS, rate limiting, API key auth, basic auth, security headers, CSRF, sessions, request IDs, body size limits, and validation.
Also add typed errors that automatically turn into the right HTTP response, plus a global error handler. I’d like a small CLI too, so I can create a new project, generate routes, controllers, middleware, and models, then build and run with a dev watch mode. If you need to check current Drogon or CMake details online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit