summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-09-21 20:48:25 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-11-11 10:44:22 (GMT)
commit55b8a57350fee26783b379d3897d38759903824f (patch)
tree6edd0e991b4bca9046c0349f0f0b5d1e12945621 /src/network
parentcd4cab01810b817cdf8eb80ab9fc3174a798dd10 (diff)
downloadQt-55b8a57350fee26783b379d3897d38759903824f.zip
Qt-55b8a57350fee26783b379d3897d38759903824f.tar.gz
Qt-55b8a57350fee26783b379d3897d38759903824f.tar.bz2
QNAM: Add direct access to the RawHeader
Provide direct access to the header fields. This makes QNetworkReplyHandler::sendResponseIfNedded drop out of the profile on the loading_standalone test case. Reviewed-By: Markus Goetz
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qnetworkreply.cpp6
-rw-r--r--src/network/access/qnetworkreply.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreply.cpp b/src/network/access/qnetworkreply.cpp
index 9ab4057..0792cea 100644
--- a/src/network/access/qnetworkreply.cpp
+++ b/src/network/access/qnetworkreply.cpp
@@ -530,6 +530,12 @@ QByteArray QNetworkReply::rawHeader(const QByteArray &headerName) const
return QByteArray();
}
+const QList<QNetworkReply::RawHeaderPair>& QNetworkReply::rawHeaderPairs() const
+{
+ Q_D(const QNetworkReply);
+ return d->rawHeaders;
+}
+
/*!
Returns a list of headers fields that were sent by the remote
server, in the order that they were sent. Duplicate headers are
diff --git a/src/network/access/qnetworkreply.h b/src/network/access/qnetworkreply.h
index c624810..82086c4 100644
--- a/src/network/access/qnetworkreply.h
+++ b/src/network/access/qnetworkreply.h
@@ -128,6 +128,9 @@ public:
QList<QByteArray> rawHeaderList() const;
QByteArray rawHeader(const QByteArray &headerName) const;
+ typedef QPair<QByteArray, QByteArray> RawHeaderPair;
+ const QList<RawHeaderPair>& rawHeaderPairs() const;
+
// attributes
QVariant attribute(QNetworkRequest::Attribute code) const;