Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2007 13:05:27 +0000 (13:05 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2007 13:05:27 +0000 (13:05 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23500 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/Api/qwebnetworkinterface.cpp
WebKitQt/Api/qwebnetworkinterface.h
WebKitQt/ChangeLog

index 32800e0144ddf08bfa36b0f721f949425db1cfcf..f047a30678bd9ba8cc2c5534d2d58c11cd492a08 100644 (file)
@@ -189,6 +189,16 @@ void QWebNetworkRequest::setHttpHeader(const QHttpRequestHeader &header) const
     d->httpHeader = header;
 }
 
+QString QWebNetworkRequest::httpHeaderField(const QString &key) const
+{
+    return d->httpHeader.value(key);
+}
+
+void QWebNetworkRequest::setHttpHeaderField(const QString &key, const QString &value)
+{
+    d->httpHeader.setValue(key, value);
+}
+
 /*!
     Post data sent with HTTP POST requests.
 */
index 81d78b283cb46b0a07d4a6bf8bfb18d743ed8d64..abc965f08db51ef5035473d2b545420978a5c4df 100644 (file)
@@ -62,6 +62,9 @@ public:
     QHttpRequestHeader httpHeader() const;
     void setHttpHeader(const QHttpRequestHeader &header) const;
 
+    QString httpHeaderField(const QString &key) const;
+    void setHttpHeaderField(const QString &key, const QString &value);
+
     QByteArray postData() const;
     void setPostData(const QByteArray &data);
 
index a07e5156610d053724f3a5fc7a4a81aa932d5dce..ef32328fed43976a5d86503fb3d550efe7fda112 100644 (file)
@@ -1,3 +1,12 @@
+2007-06-13  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed by Lars.
+
+        Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.
+
+        * Api/qwebnetworkinterface.cpp:
+        * Api/qwebnetworkinterface.h:
+
 2007-06-13  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Lars.