Commit 06731a33 authored by Michael Bruning's avatar Michael Bruning Committed by Joerg Bornemann
Browse files

Rename setExtraHeader to setHttpHeader in QWebEngineUrlRequestInfo.


Also make a small update to the documentation of the method.

Change-Id: Ie19578ffccfd30c884cdfe882dffcdae6637e8e2
Reviewed-by: default avatarLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: default avatarKai Koehne <kai.koehne@theqtcompany.com>
Showing with 3 additions and 3 deletions
......@@ -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;
......
......@@ -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;
......
Supports Markdown
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