mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-03 12:18:11 +08:00
17c80508c0
* Drop C++14 Support * Update README.md * Remove drogon::optional in favor of std::optional * Remove drogon::filesystem in favor of std::filesystem * Remove boost::string_view and pre-c++17 hacks * Remove boost::any * Remove the string_view.h and the any.h * Remove boost lib * Update .clang-format and ci Co-authored-by: Omar Mohamed <omar@omar-laptop.lan> Co-authored-by: Ken Matsui <26405363+ken-matsui@users.noreply.github.com> Co-authored-by: An Tao <antao2002@gmail.com> Co-authored-by: albaropereyra22 <141711575+albaropereyra22@users.noreply.github.com> Co-authored-by: Yoshihiro Hokazono <47231909+hokacci@users.noreply.github.com> Co-authored-by: Omar Mohamed Khallaf <51155980+omarmohamedkh@users.noreply.github.com> |
||
---|---|---|
.. | ||
benchmark | ||
client_example | ||
file_upload | ||
helloworld | ||
jsonstore | ||
login_session | ||
redis | ||
redis_cache | ||
redis_chat | ||
simple_reverse_proxy | ||
websocket_client | ||
websocket_server | ||
CMakeLists.txt | ||
README.md |
Drogon Examples
The following examples can help you understand how to use Drogon:
- helloworld - The multiple ways of "Hello, World!"
- client_example - A client example.
- websocket_client - An example on how to use the WebSocket client
- login_session - How to use the built-in session system to handle login and out
- file_upload - How to handle file uploads in Drogon
- simple_reverse_proxy - A Example showing how to use drogon as a http reverse proxy with a simple round robin.
- benchmark - Basic benchmark example. see wiki benchmarks
- jsonstore - Implementation of a jsonstore-like storage service that is concurrent and stores in memory. Serving as a showcase on how to build a minimally useful RESTful APIs in Drogon.
- redis - A simple example of Redis
- websocket_server - Example WebSocker chat room server
- redis_cache - An example for using coroutines of redis clients
- redis_chat - A chatroom server built with websocket and redis pub/sub service.
TechEmpower Framework Benchmarks test suite
I created a benchmark suite for the tfb
, see here for details.
Another test suite
I also created a test suite for another web frameworks benchmark repository, see here, in this project, drogon is used as a sub-module (locally include in the project).