diff options
Diffstat (limited to 'src/core/api/qwebengineurlrequestjob.cpp')
-rw-r--r-- | src/core/api/qwebengineurlrequestjob.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/api/qwebengineurlrequestjob.cpp b/src/core/api/qwebengineurlrequestjob.cpp index 47aab48a0..941c70b1d 100644 --- a/src/core/api/qwebengineurlrequestjob.cpp +++ b/src/core/api/qwebengineurlrequestjob.cpp @@ -114,6 +114,17 @@ QByteArray QWebEngineUrlRequestJob::requestMethod() const } /*! + \since 5.11 + Returns the origin URL of the content that initiated the request. If the + request was not initiated by web content the function will return an + empty QUrl. +*/ +QUrl QWebEngineUrlRequestJob::initiator() const +{ + return d_ptr->initiator(); +} + +/*! Replies to the request with \a device and the MIME type \a contentType. The user has to be aware that \a device will be used on another thread |