How to create multithreaded QHttpServer (qt 6.4+)
-
Hi!
QTcpServer has proven ways to make a multithreaded server (something like QTcpSocketRunnable). What is the best way to provide multithreading with the QHttpServer introduced with QT 6.4?
I assume that QHttpServer is a descendant of QTcpServer and is essentially single-threaded. Is it possible to create an object inherited from QRunnable when (after) handling routers? The question is how to return QHttpServerResponse from it.
-
Oh sorry. Documentation explain it: https://doc.qt.io/qt-6/qhttpserver.html#route
-
A acetone has marked this topic as solved on