Qt HTTP Server C++ Classes

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

This module was introduced in Qt 6.4.

Classes

QAbstractHttpServer

API to subclass to implement an HTTP server

QHttpServer

Simplified API for QAbstractHttpServer and QHttpServerRouter

QHttpServerRequest

Encapsulates an HTTP request

QHttpServerResponder

API for sending replies from an HTTP server

QHttpServerResponse

Encapsulates an HTTP response

QHttpServerRouter

Provides functions to bind a URL to a ViewHandler

QHttpServerRouterRule

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