Make QHttpServerResponder able to be called from a different thread


Make QHttpServerResponder send signals to the protocol handlers
instead of calling them directly, thereby supporting
QHttpServerResponder being used from a different thread than
the one QHttpServer resides in.

This is a step towards making QHttpServer::route() accept handlers
that can return QFuture<void> and write to QHttpServerResponder
from another thread.

Every protocol handler instance is in the same thread as
QHttpServer, and handles a single incoming HTTP connection.
Each HTTP/1 protocol handler responds to one request at a time,
while each HTTP/2 protocol handler will be able to reply to
multiple requests concurrently.

Task-number: QTBUG-108127
Change-Id: I5f584516a218a01e2b164879ecaaa61413fab26d
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
commit6a8336a702306d4cf0124dbd4a9259ce1e85a898
parent114daf0d132eea7ca78699049d9b15172f103939
authorØystein Heskestad <oystein.heskestad@qt.io>
committerØystein Heskestad <oystein.heskestad@qt.io>
commit timeTue, 29 Jul 2025 10:36:59 +0200