summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreply.h
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2017-01-02 15:47:15 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2017-01-19 04:34:03 +0000
commit231259c3d519a55880563b12f5796723fa99e522 (patch)
treeaea3205f73e08803a7d52cb2581cf67c4266f7bf /src/network/access/qnetworkreply.h
parent45f80a52c2d01ba14f550e48e32d95748a3ff444 (diff)
Add a user-controlled auto-redirect policy
With this new policy, after emitting 'redirected', QNetworkReplyHttpImpl waits for client code to decide if QNAM should follow this redirect or not. The client can either allow this redirect by emitting 'redirectAllowed' or abort the reply. Task-number: QTPM-236 Change-Id: Ia04619f6bd1f0caa477833ae859b24033027b2e1 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/network/access/qnetworkreply.h')
-rw-r--r--src/network/access/qnetworkreply.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreply.h b/src/network/access/qnetworkreply.h
index 1419db8597..d858e07d84 100644
--- a/src/network/access/qnetworkreply.h
+++ b/src/network/access/qnetworkreply.h
@@ -163,6 +163,7 @@ Q_SIGNALS:
void preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator);
#endif
void redirected(const QUrl &url);
+ void redirectAllowed();
void uploadProgress(qint64 bytesSent, qint64 bytesTotal);
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);