Commit e413f96c authored by hausmann's avatar hausmann
Browse files

Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 67c83645
......@@ -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.
*/
......
......@@ -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);
......
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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment