20#include <QWebEngineUrlRequestJob>
45 NoError = QWebEngineUrlRequestJob::NoError,
63 Q_INVOKABLE
void redirect(
const QString &urlString);
70 Q_INVOKABLE
void reply(
const QVariantMap &map);
72 QWebEngineUrlRequestJob *m_job =
nullptr;
The QmlWebEngineUrlRequestJob class.
QString requestUrl
request url of the QWebEngineUrlRequestJob
Q_INVOKABLE void redirect(const QString &urlString)
Redirects the request to the url.
QmlWebEngineUrlRequestJob(QWebEngineUrlRequestJob *job=nullptr, QObject *parent=nullptr)
QString requestMethod
request method of the QWebEngineUrlRequestJob
Q_INVOKABLE void fail(QmlWebEngineUrlRequestJob::Error error)
Fails the request with the error.
Q_INVOKABLE void reply(const QVariantMap &map)
Replies to the request.
Error
The Error enum, exposes QWebEngineUrlRequestJob::Error to QML.
@ RequestDenied
Request denied.
@ UrlInvaild
Url invalid error.
@ RequestFailed
Request failed.
@ RequestAborted
Request aborted.
@ UrlNotFound
Url not found error.
QString initiator
initiator of the QWebEngineUrlRequestJob