summaryrefslogtreecommitdiffstats
path: root/src/core/api
diff options
context:
space:
mode:
authorMichael Bruning <michael.bruning@theqtcompany.com>2015-11-24 17:46:25 +0100
committerJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-12-02 13:29:13 +0000
commit06731a33c0e5fe764548cb3f2b9d1c215cd49404 (patch)
tree08304adbe723a7bf036265c74aa5f134f6555b6d /src/core/api
parente2e61521969932c8b9f1afe13979f21ecf2a5399 (diff)
Rename setExtraHeader to setHttpHeader in QWebEngineUrlRequestInfo.
Also make a small update to the documentation of the method. Change-Id: Ie19578ffccfd30c884cdfe882dffcdae6637e8e2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/core/api')
-rw-r--r--src/core/api/qwebengineurlrequestinfo.cpp4
-rw-r--r--src/core/api/qwebengineurlrequestinfo.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/api/qwebengineurlrequestinfo.cpp b/src/core/api/qwebengineurlrequestinfo.cpp
index 0aab4aa1b..c6b85ddb0 100644
--- a/src/core/api/qwebengineurlrequestinfo.cpp
+++ b/src/core/api/qwebengineurlrequestinfo.cpp
@@ -274,10 +274,10 @@ void QWebEngineUrlRequestInfo::block(bool shouldBlock)
}
/*!
- Sets an extra request header for this request with \a name and \a value.
+ Sets the request header \a name to \a value for this request.
*/
-void QWebEngineUrlRequestInfo::setExtraHeader(const QByteArray &name, const QByteArray &value)
+void QWebEngineUrlRequestInfo::setHttpHeader(const QByteArray &name, const QByteArray &value)
{
Q_D(QWebEngineUrlRequestInfo);
d->changed = true;
diff --git a/src/core/api/qwebengineurlrequestinfo.h b/src/core/api/qwebengineurlrequestinfo.h
index 1443665af..008df7751 100644
--- a/src/core/api/qwebengineurlrequestinfo.h
+++ b/src/core/api/qwebengineurlrequestinfo.h
@@ -92,7 +92,7 @@ public:
void block(bool shouldBlock);
void redirect(const QUrl &url);
- void setExtraHeader(const QByteArray &name, const QByteArray &value);
+ void setHttpHeader(const QByteArray &name, const QByteArray &value);
private:
friend class QtWebEngineCore::NetworkDelegateQt;