Class: QgsNetworkContentFetcher¶
-
class
qgis.core.
QgsNetworkContentFetcher
¶ Bases:
PyQt5.QtCore.QObject
Constructor for QgsNetworkContentFetcher.
HTTP network content fetcher. A simple method for fetching remote HTTP content and converting the content to standard formats. Url redirects are automatically handled.
See also
New in version 2.5: Enums
Methods
Cancels any ongoing request.
Returns the fetched content as a string
Fetches content from a remote URL and handles redirects.
Returns a reference to the network reply
Signals
Emitted when data is received.
Emitted when content has loaded [signal]
Attributes
-
cancel
(self)¶ Cancels any ongoing request.
New in version 3.2.
-
childEvent
()¶
-
connectNotify
()¶
-
contentAsString
(self) → str¶ Returns the fetched content as a string
- Returns
string containing network content
-
customEvent
()¶
-
disconnectNotify
()¶
-
downloadProgress
¶ Emitted when data is received.
New in version 3.2: [signal]
-
fetchContent
(self, url: QUrl)¶ Fetches content from a remote URL and handles redirects. The finished() signal will be emitted when content has been fetched.
- Parameters
url – URL to fetch
fetchContent(self, request: QNetworkRequest) Fetches content using a network
request
and handles redirects. The finished() signal will be emitted when content has been fetched.New in version 3.2.
-
finished
¶ Emitted when content has loaded [signal]
-
isSignalConnected
()¶
-
receivers
()¶
-
reply
(self) → QNetworkReply¶ Returns a reference to the network reply
- Returns
QNetworkReply for fetched URL content
-
sender
()¶
-
senderSignalIndex
()¶
-
timerEvent
()¶
-