Qt HTTP Server C++ Classes

List of C++ classes that provide HTTP server framework. More...

This module was introduced in Qt 6.4.



API to subclass to implement an HTTP server


Simplified API for QAbstractHttpServer and QHttpServerRouter


Encapsulates an HTTP request


API for sending replies from an HTTP server


Encapsulates an HTTP response


Provides functions to bind a URL to a ViewHandler


The base class for QHttpServerRouter rules

Detailed Description

This module is in Technical Preview state.

To link against this library with CMake, add the following to your CMakeLists.txt file:

find_package(Qt6 COMPONENTS HttpServer)
target_link_libraries(<project name> PUBLIC Qt::HttpServer)

If, on the other hand, you are using qmake, add this to your .pro file:

QT += httpserver

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.