diff options
author | Yigit Akcay <yigit.akcay@qt.io> | 2023-01-27 13:07:58 +0100 |
---|---|---|
committer | Yigit Akcay <yigit.akcay@qt.io> | 2023-02-13 09:12:10 +0100 |
commit | 95f70c9a0776ea0c51ec3f6c73ffb56cf9e956e6 (patch) | |
tree | 2f3e9cb19bb86cb0d443f8d43bbc38706be28177 /src/core/web_contents_delegate_qt.h | |
parent | 5358dd0dca2f19e3b4d20fa98878c9d0038cf4ce (diff) |
QWebEngineLoadingInfo: Add response headers
This change adds a member variable that contains the response headers
to QWebEngineLoadingInfo. It is filled when a
QWebEngineLoadingInfo instance is constructed inside
WebContentsDelegateQt::emitLoadFinished(bool).
The response headers are extracted from the navigation handle when
WebContentsDelegateQt::DidFinishNavigation(content::NavigationHandle *)
is called.
The response headers are non-empty when QWebEngineLoadingInfo::status()
is equal to QWebEngineLoadingInfo::LoadSucceededStatus or
QWebEngineLoadingInfo::LoadFailedStatus.
Fixes: QTBUG-106862
Change-Id: I4d196e3cc71725ddad9a5832af72d1b4e50924c8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/web_contents_delegate_qt.h')
-rw-r--r-- | src/core/web_contents_delegate_qt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_contents_delegate_qt.h b/src/core/web_contents_delegate_qt.h index eda4e1e57..37c2c7341 100644 --- a/src/core/web_contents_delegate_qt.h +++ b/src/core/web_contents_delegate_qt.h @@ -200,6 +200,7 @@ private: int errorCode = 0, errorDomain = 0; QString errorDescription; bool triggersErrorPage = false; + QHash<QByteArray, QByteArray> responseHeaders; void clear() { *this = LoadingInfo(); } } m_loadingInfo; |