GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing cpp.libhunt.com — drogon Alternatives - C++ Web Application Framework | LibHunt drogonDrogon: A C++14/17 based HTTP web application framework running on Linux/macOS/Unix/Windows [Moved to: https://github.com/drogonframework/drogon]
DISCONTINUED.
You can find some alternatives below.
Take the C++ Developer Survey
- About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email.
Take the survey »
Popularity
8.6
Stable
Activity
9.0
Growing
Stars
5,863
Watchers
185
Forks
513
Last Commit
DescriptionDrogon 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++.
Programming language: C++
License: MIT License
Latest version: v1.6.0
drogon alternatives and similar libraries
Based on the "Web Application Framework" category.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Promo
www.saashub.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
Do you think we are missing an alternative of drogon or a related project? Popular ComparisonsREADME
English | [简体中文](./README.zh-CN.md) | [繁體中文](./README.zh-TW.md) OverviewDrogon 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 is a cross-platform framework, It supports Linux, macOS, FreeBSD, OpenBSD, and Windows. Its main features are as follows:
A very simple exampleUnlike most C++ frameworks, the main program of the drogon application can be kept clean and simple. Drogon uses a few tricks to decouple controllers from the main program. The routing settings of controllers can be done through macros or configuration file. Below is the main program of a typical drogon application:
It can be further simplified by using configuration file as follows:
Drogon provides some interfaces for adding controller logic directly in the main() function, for example, user can register a handler like this in Drogon:
While such interfaces look intuitive, they are not suitable for complex business logic scenarios. Assuming there are tens or even hundreds of handlers that need to be registered in the framework, isn't it a better practice to implement them separately in their respective classes? So unless your logic is very simple, we don't recommend using above interfaces. Instead, we can create an HttpSimpleController as follows:
Most of the above programs can be automatically generated by the command line tool For JSON format response, we create the controller as follows:
Let's go a step further and create a demo RESTful API with the HttpController class, as shown below (Omit the source file):
As you can see, users can use the In addition, you can also find that all handler interfaces are in asynchronous mode, where the response is returned by a callback object. This design is for performance reasons because in asynchronous mode the drogon application can handle a large number of concurrent requests with a small number of threads. After compiling all of the above source files, we get a very simple web application. This is a good start. For more information, please visit the wiki or DocsForge ContributionsEvery contribution is welcome. Please refer to the [contribution guidelines](CONTRIBUTING.md) for more information. Do not miss the trending, libraries, news and articles with our weekly report.
Spin The Wheel Of Names
for a cryptographically secure random name picker.
Schedule a when to meet poll. |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |