diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2010-02-15 13:19:47 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2010-02-16 10:59:11 (GMT) |
commit | 934b824fbb7a313789de32356664db81dc8576da (patch) | |
tree | cd8879613788a3f4876bf0150d62203530f209f5 /src/network/access/qnetworkaccessmanager.h | |
parent | e5534b9ba700fa2b25fa63e181e2c5f82469875d (diff) | |
download | Qt-934b824fbb7a313789de32356664db81dc8576da.zip Qt-934b824fbb7a313789de32356664db81dc8576da.tar.gz Qt-934b824fbb7a313789de32356664db81dc8576da.tar.bz2 |
QNetworkAccessManager: add method to send custom requests
This method was added to support e.g. HTTP OPTIONS (needed by Webkit);
rather than adding one method for each of those exotic verbs, there is
now a generic version for all.
Reviewed-by: Markus Goetz
Reviewed-by: Andreas Kling
Task-number: QTBUG-8206
Diffstat (limited to 'src/network/access/qnetworkaccessmanager.h')
-rw-r--r-- | src/network/access/qnetworkaccessmanager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/access/qnetworkaccessmanager.h b/src/network/access/qnetworkaccessmanager.h index d2fe527..3a8ba58 100644 --- a/src/network/access/qnetworkaccessmanager.h +++ b/src/network/access/qnetworkaccessmanager.h @@ -75,6 +75,7 @@ public: PutOperation, PostOperation, DeleteOperation, + CustomOperation, UnknownOperation = 0 }; @@ -102,6 +103,7 @@ public: QNetworkReply *put(const QNetworkRequest &request, QIODevice *data); QNetworkReply *put(const QNetworkRequest &request, const QByteArray &data); QNetworkReply *deleteResource(const QNetworkRequest &request); + QNetworkReply *sendCustomRequest(const QNetworkRequest &request, const QByteArray &verb, QIODevice *data = 0); Q_SIGNALS: #ifndef QT_NO_NETWORKPROXY |