Drogon is a C++14/17-based HTTP application framework. Drogon can be used to easily build various types of web application server programs using C++.
Drogon is the name of a dragon in the American TV series "Game of Thrones" that I really like.
Drogon's main application platform is Linux. It also supports Mac OS and FreeBSD. Windows will be supported in future also.
Its main features are as follows:
- Use a non-blocking I/O network lib based on epoll (kqueue under MacOS/FreeBSD) to provide high-concurrency, high-performance network IO, please visit the Benchmarks page for more details;
- Provide a completely asynchronous programming mode;
- Support asynchronously reading and writing database, the database include PostgreSQL, MySQL(MariaDB) and sqlite3;
- Support Http1.0/1.1 (server side and client side);
- Support https (based on OpenSSL);
- Support WebSocket (server side);
- Support pipelining;
- Support cookies and built-in sessions;
- Support JSON format request and response, very friendly to the Restful API application development;
- Support gzip compression transmission;
- Support file download and upload;
- Support plugins which can be installed by the configuration file at load time;
- Completely decouple the main program framework, controllers and views.
- Support routing from the path to the controller handler;
- Support filter chains to facilitate the execution of unified logic (such as login verification, Http Method constraint verification, etc.) before controllers;
- The view is described by a "JSP-like" CSP file, the C++ code is embedded into the Html page by the CSP tag；
- Support automatically generates the C++ code file from view CSP file;
- Support back-end rendering, the controller generates the data to the view to generate the Html page,
- Support view page dynamic loading (dynamic compilation and loading at runtime);
- Lightweight ORM implementation that supports for regular object-to-database bidirectional mapping;
- Provide a command line tool, drogon_ctl, to quickly create various classes and view code;
- Support AOP with build-in joinpoints.
- Support ARM Architecture;