C++ Qt 5 HTTP Server
MIT License
HttpServer is a C++ library that uses the Qt platform to setup a feature rich, easy-to-use HTTP server.
Two existing Qt HTTP server libraries exist out there already, but the licenses are more restrictive (GPL & LGPL), so I decided to create my own:
There are two variants of this library, one with and without promise support. Promises allow for easier & cleaner development with asynchronous logic. The two variants are supported via separate branches:
Note: The variant without promise support is considered deprecated and will only be supported via bug fixes in the future. For new development, promises are encouraged. The code will remain in two separate branches until sufficient unit testing & documentation is provided for promises support. If you would like to help, please contribute!
HttpServer.pro
in Qt Creator.common.pri
file in the top-level directory. This will store any specific include & library paths on a per-machine basis.
zlib
build with INCLUDEPATH
and LIBS
qtpromise
directory with INCLUDEPATH
(QtPromise is a header-only library)
qtpromise.pri
to do this for your. Alternatively, you can install the headers to a system-configured path in which case you don't need to do anything.PATH
variableNote: Since this is just a normal Qt project with a pro
file, you can compile the project via the command-line with qmake
and your platform-specific compiler (i.e. make
for Linux or nmake
for Windows).
See here for example code using HttpServer.
Pull requests are welcome (and encouraged) for any or all issues!
HttpServer has an MIT-based license.