summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qnetworkproxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/kernel/qnetworkproxy.h')
-rw-r--r--src/network/kernel/qnetworkproxy.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkproxy.h b/src/network/kernel/qnetworkproxy.h
index 3ad052244a..07da51e5ec 100644
--- a/src/network/kernel/qnetworkproxy.h
+++ b/src/network/kernel/qnetworkproxy.h
@@ -43,6 +43,7 @@
#define QNETWORKPROXY_H
#include <QtNetwork/qhostaddress.h>
+#include <QtNetwork/qnetworkrequest.h>
#include <QtCore/qshareddata.h>
#ifndef QT_NO_NETWORKPROXY
@@ -174,6 +175,16 @@ public:
static void setApplicationProxy(const QNetworkProxy &proxy);
static QNetworkProxy applicationProxy();
+ // "cooked" headers
+ QVariant header(QNetworkRequest::KnownHeaders header) const;
+ void setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value);
+
+ // raw headers:
+ bool hasRawHeader(const QByteArray &headerName) const;
+ QList<QByteArray> rawHeaderList() const;
+ QByteArray rawHeader(const QByteArray &headerName) const;
+ void setRawHeader(const QByteArray &headerName, const QByteArray &value);
+
private:
QSharedDataPointer<QNetworkProxyPrivate> d;
};