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>