summaryrefslogtreecommitdiffstats
path: root/src/network/access/qhttpprotocolhandler.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <markus@woboq.com>2021-06-07 16:56:59 +0200
committerMarkus Goetz <markus@woboq.com>2021-07-20 22:08:39 +0200
commite1b010ff47ae81067802d9240ea990d6d9187484 (patch)
tree612acc4acf7585aec439262326442b1a993ad168 /src/network/access/qhttpprotocolhandler.cpp
parent5e688a72046972b871347ff4d8dd141cdf9f2cef (diff)
QNetworkReply: Add two new signals
These signals allow monitoring where in the HTTP1/HTTP2 flow a request is currently in. Fixes: QTBUG-71698 Fixes: QTBUG-18766 Change-Id: Icc2fe435afc9f680fa7a76c32731e25fcdfeb4b4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network/access/qhttpprotocolhandler.cpp')
-rw-r--r--src/network/access/qhttpprotocolhandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/access/qhttpprotocolhandler.cpp b/src/network/access/qhttpprotocolhandler.cpp
index f7f68ca65b..578dcfa1b0 100644
--- a/src/network/access/qhttpprotocolhandler.cpp
+++ b/src/network/access/qhttpprotocolhandler.cpp
@@ -319,6 +319,8 @@ bool QHttpProtocolHandler::sendRequest()
#else
m_header = QHttpNetworkRequestPrivate::header(m_channel->request, false);
#endif
+ QMetaObject::invokeMethod(m_reply, "requestSent", Qt::QueuedConnection);
+
// flushing is dangerous (QSslSocket calls transmit which might read or error)
// m_socket->flush();
QNonContiguousByteDevice* uploadByteDevice = m_channel->request.uploadByteDevice();