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 — httpp Alternatives - C++ Web Application Framework | LibHunt httppMicro http server and client written in C++
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
3.0
Stable
Activity
5.1
Stable
Stars
162
Watchers
12
Forks
33
Last Commit
DescriptionSmall and efficient http server and client written in C++
Code Quality Rank:
L1
Programming language: C++
License: BSD 2-clause "Simplified" License
httpp 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 httpp or a related project? Popular ComparisonsREADMEhttppMicro http server and client written in C++ The motivation behind this little piece of code is to provide a really simple, yet efficient HTTP server to implement in-app webservice easily. The HttpServer will take care of the connections, request parsing and response generation. The handler on another hand is reponsible for implementing the "logic" behind the service. For example, the server has a very limited knowledge of the HTTP protocol… The HttpClient has been implemented using curl and its multi interface. See an exampe [here](examples/echo/simple_echo_server.cpp) or [here](examples/ping/ping.cpp). REQUIREMENTSBoost is required, version >= 1.54 and libcurl. HTTPP has a dependency on CommonPP since the version 0.7. CommonPP has a dependency on Boost and TBB. The TBB dependency will become optional. A C++14 compliant compiler is also required. BUILD
A debian package can be generated running:
To build tests:
Examples:
To build the shared library version:
By default the build is in release mode, to change that you can:
The compilation and tests have been run on Mac OS X (curl and openssl from homebrew seems to be required to have all tests passing, I don't know why yet), and GNU/Linux distro (Ubuntu, ArchLinux). Current stableThe current stable is the v0.7.0. There are still some things missing:
Design choicesThis section is only about the server. Since the 0.7 version, HTTPP is trying to allocate as few memory as possible. Each connection is associated with some buffers that are never released to the system. This this might create a memory overhead, this allows to achieve a better performance. The HTTP parser has been ported to Ragel to generate a faster parser than the one based on stream. I found out after having finished that Mongel did the same way before me, so I might try to import it if it makes sense. At the same time, the parser avoids as much as possible copies by using boost::string_ref. One of the reason is that HTTPP is designed to be used in a REST server exposing an API and developed for RTB platform, each request is relatively similar to the previous one in size. Second reason, it makes everything simpler (no buffer management, no release, no cache needed, etc). PerformancesThis section is only about the server. On a Dell 3800 with an With a slightly more complex server that decoded the request, performed some string manipulation and returned a predefined json payload, we have seen approximately 220K requests per second on identical hardware, using wrk to drive the load testing. 5 threads were allocated to the httpp server, and 3 to wrk (with 500 concurrent connections). This is scaling as threads are added but I don't have enough proper machine to do a real benchmark. 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 01402775 — 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. |