GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Categories
  • Newsletter
  • Submit
  • Login
  • Awesome C++
  • Web Application Framework

This view

  • Original page
  • New address

GeezerVison is showing cpp.libhunt.com — httpp Alternatives - C++ Web Application Framework | LibHunt

  • Subscribe
  • Submit
  • Categories
  • About
  • Login

httpp

Micro http server and client written in C++

daedric logo
Source Code    Changelog
Suggest Changes
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 over 3 years ago

Description

Small and efficient http server and client written in C++

Code Quality Rank: L1
Programming language: C++
License: BSD 2-clause "Simplified" License
Tags: Web Application Framework     HTTP     Asio     Curl    

httpp alternatives and similar libraries

Based on the "Web Application Framework" category.
Alternatively, view httpp alternatives based on common mentions on social networks and blogs.

  • Oat++

    8.7 5.2 httpp VS Oat++
    🌱Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.
    oatpp logo
  • Crow

    8.6 0.0 L1 httpp VS Crow
    Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)
    ipkn logo
  • SaaSHub - Software Alternatives and Reviews

    SaaSHub helps you find the best software and product alternatives
    Promo www.saashub.com
    SaaSHub Logo
  • drogon

    8.6 9.0 httpp VS drogon
    DISCONTINUED. Drogon: A C++14/17 based HTTP web application framework running on Linux/macOS/Unix/Windows [Moved to: https://github.com/drogonframework/drogon]
    an-tao logo
  • lwan

    8.3 9.5 httpp VS lwan
    Experimental, scalable, high performance HTTP server
    lpereira logo
  • CrowCpp

    8.0 9.0 httpp VS CrowCpp
    A Fast and Easy to use microframework for the web.
    CrowCpp logo
  • Civetweb

    7.8 5.7 L2 httpp VS Civetweb
    Embedded C/C++ web server
    civetweb logo
  • Pistache

    7.7 6.9 httpp VS Pistache
    A high-performance REST toolkit written in C++
    pistacheio logo
  • Kore

    7.6 5.5 L3 httpp VS Kore
    An easy to use, scalable and secure web application framework for writing web APIs in C or Python. || This is a read-only mirror, please see https://kore.io/mail and https://kore.io/source for information on how to contribute via the mailing lists.
    jorisvink logo
  • Wt

    6.7 9.6 L3 httpp VS Wt
    Wt, C++ Web Toolkit
    emweb logo
  • libOnion

    6.7 2.0 L4 httpp VS libOnion
    C library to create simple HTTP servers and Web Applications.
    davidmoreno logo
  • facil.io

    6.7 4.7 L2 httpp VS facil.io
    Your high performance web application C framework
    boazsegev logo
  • TreeFrog Framework

    6.0 8.3 L2 httpp VS TreeFrog Framework
    TreeFrog Framework : High-speed C++ MVC Framework for Web Application
    treefrogframework logo
  • Cutelyst

    5.2 6.8 httpp VS Cutelyst
    A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
    cutelyst logo
  • CppCMS

    4.5 4.9 httpp VS CppCMS
    CppCMS Framework
    artyom-beilis logo
  • paozhu

    4.4 9.5 httpp VS paozhu
    Paozhu🧨 A C++20 web framework supporting HTTP/1.1, HTTP/2, WebSocket, MQTT, and a built-in ORM, for rapid CRUD development.
    hggq logo
  • QSimpleScada

    4.0 0.0 httpp VS QSimpleScada
    Qt based simple SCADA framework, with dashboard, static and dynamic components
    IndeemaSoftware logo
  • QDjango

    3.7 0.0 L1 httpp VS QDjango
    DISCONTINUED. QDjango, a Qt-based C++ web framework
    jlaine logo
  • Mach

    1.2 9.7 httpp VS Mach
    A modern C++20 web framework for building fast, robust web applications with minimal APIs, controllers, dependency injection, and more.
    machframework logo

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.

Do you think we are missing an alternative of httpp or a related project?

Add another 'Web Application Framework' Library

Popular Comparisons

  • httpp
    vs
    Crow
  • httpp
    vs
    Civetweb
  • httpp
    vs
    Pistache
  • httpp
    vs
    TreeFrog Framework
  • httpp
    vs
    libOnion

README

Build Status Coverity Status

httpp

Micro 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).

REQUIREMENTS

Boost 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

$> mkdir -p $HTTPP_PATH && cd $HTTPP_PATH
$> git clone https://github.com/daedric/httpp.git .
$> git submodule update --init
$> mkdir -p $HTTPP_BUILD_PATH && cd $HTTPP_BUILD_PATH
$> cmake $HTTPP_PATH
$> make

A debian package can be generated running:

$> make package

To build tests:

$> cmake $HTTPP_PATH -DBUILD_TESTS=ON

Examples:

$> cmake $HTTPP_PATH -DBUILD_EXAMPLES=ON

To build the shared library version:

$> cmake $HTTPP_PATH -DBUILD_SHARED_LIBS=ON

By default the build is in release mode, to change that you can:

$> cmake $HTTPP_PATH -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=DEBUG

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 stable

The current stable is the v0.7.0. There are still some things missing:

  • Optional commonpp dependencies;
  • Probes in the server.

Design choices

This 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).

Performances

This section is only about the server.

On a Dell 3800 with an Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz, I was able to achieve between 160K and 180K request per second with the ping program (against 70 to 90K with the 0.6.2) and ab with -k -c 8 options on the same machine, this means that HTTPP overhead is about 5 to 6 micro seconds.

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.

Awesome C++ is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
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.