QWebEngineUrlResponseInfo Class
A utility type for the QWebEngineUrlResponseInterceptor. More...
Header: | #include <QWebEngineUrlResponseInfo> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
Since: | Qt 6.6 |
Inherits: | QObject |
Properties
- requestHeaders : const QHash<QByteArray,QByteArray>
- requestUrl : const QUrl
- responseHeaders : QHash<QByteArray,QByteArray>
Public Functions
QHash<QByteArray, QByteArray> | requestHeaders() const |
QUrl | requestUrl() const |
QHash<QByteArray, QByteArray> | responseHeaders() const |
void | setResponseHeaders(const QHash<QByteArray, QByteArray> &newResponseHeaders) |
Detailed Description
Contains information about the request that has caused the response intercepted by a QWebEngineUrlResponseInterceptor.
See also QWebEngineUrlResponseInterceptor.
Property Documentation
[read-only]
requestHeaders : const QHash<QByteArray,QByteArray>
Holds the request headers of the URL load request.
Access functions:
QHash<QByteArray, QByteArray> | requestHeaders() const |
[read-only]
requestUrl : const QUrl
Holds the URL of the URL load request.
Access functions:
QUrl | requestUrl() const |
responseHeaders : QHash<QByteArray,QByteArray>
Holds the response headers of the URL load request.
Access functions:
QHash<QByteArray, QByteArray> | responseHeaders() const |
void | setResponseHeaders(const QHash<QByteArray, QByteArray> &newResponseHeaders) |
Member Function Documentation
void QWebEngineUrlResponseInfo::setResponseHeaders(const QHash<QByteArray, QByteArray> &newResponseHeaders)
Sets the response headers to newResponseHeaders.
Sets the response headers to newResponseHeaders. If newResponseHeaders differ from the current response headers then QWebEngineUrlResponseInfo::isModified() will now return true
.
Note: Setter function for property responseHeaders.
See also responseHeaders().
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.