PythonQt.QtNetwork.QNetworkReply · declarations 001
Back to PythonQt.QtNetwork.QNetworkReply
AuthenticationRequiredError
instance-attribute
AuthenticationRequiredError: Any
BackgroundRequestNotAllowedError
instance-attribute
BackgroundRequestNotAllowedError: Any
ContentAccessDenied
instance-attribute
ContentAccessDenied: Any
ContentConflictError
instance-attribute
ContentConflictError: Any
ContentGoneError
instance-attribute
ContentGoneError: Any
ContentNotFoundError
instance-attribute
ContentNotFoundError: Any
ContentOperationNotPermittedError
instance-attribute
ContentOperationNotPermittedError: Any
ContentReSendError
instance-attribute
ContentReSendError: Any
InsecureRedirectError
instance-attribute
InsecureRedirectError: Any
InternalServerError
instance-attribute
InternalServerError: Any
NetworkError
instance-attribute
NetworkError: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
NetworkSessionFailedError
instance-attribute
NetworkSessionFailedError: Any
OperationCanceledError
instance-attribute
OperationCanceledError: Any
OperationNotImplementedError
instance-attribute
OperationNotImplementedError: Any
ProtocolFailure
instance-attribute
ProtocolFailure: Any
ProtocolInvalidOperationError
instance-attribute
ProtocolInvalidOperationError: Any
ProtocolUnknownError
instance-attribute
ProtocolUnknownError: Any
ProxyTimeoutError
instance-attribute
ProxyTimeoutError: Any
ServiceUnavailableError
instance-attribute
ServiceUnavailableError: Any
TemporaryNetworkFailureError
instance-attribute
TemporaryNetworkFailureError: Any
TimeoutError
instance-attribute
TimeoutError: Any
TooManyRedirectsError
instance-attribute
TooManyRedirectsError: Any
UnknownContentError
instance-attribute
UnknownContentError: Any
UnknownNetworkError
instance-attribute
UnknownNetworkError: Any
UnknownProxyError
instance-attribute
UnknownProxyError: Any
UnknownServerError
instance-attribute
UnknownServerError: Any
abort
abort() -> None
X.abort()
Supplemental documentation: Qt 5 reference:
[pure virtual slot] void QNetworkReply::abort()
Aborts the operation immediately and close down any network connections still open. Uploads still in progress are also aborted.
The finished() signal will also be emitted.
See also close() and finished().
Upstream PySide2 reference signatures (binding differences may apply):
abort(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkreply.html#abort
aboutToClose
aboutToClose(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkReply.aboutToClose; argument details are not documented.
attribute
attribute(code: Any) -> Any
X.attribute(code) -> object
Supplemental documentation: Qt 5 reference:
QVariant QNetworkReply::attribute(QNetworkRequest::Attribute code) const
Returns the attribute associated with the code code. If the attribute has not been set, it returns an invalid QVariant (type QMetaType::UnknownType).
You can expect the default values listed in QNetworkRequest::Attribute to be applied to the values returned by this function.
See also setAttribute() and QNetworkRequest::Attribute.
Upstream PySide2 reference signatures (binding differences may apply):
attribute(self, code: PySide2.QtNetwork.QNetworkRequest.Attribute) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qnetworkreply.html#attribute
bytesWritten
bytesWritten(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkReply.bytesWritten; argument details are not documented.
channelBytesWritten
channelBytesWritten(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkReply.channelBytesWritten; argument details are not documented.
channelReadyRead
channelReadyRead(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkReply.channelReadyRead; argument details are not documented.
close
close() -> None
X.close()
Supplemental documentation: Qt 5 reference:
[override virtual] void QNetworkReply::close()
Reimplements: QIODevice::close().
Closes this device for reading. Unread data is discarded, but the network resources are not discarded until they are finished. In particular, if any upload is in progress, it will continue until it is done.
The finished() signal is emitted when all operations are over and the network resources are freed.
See also abort() and finished().
Upstream PySide2 reference signatures (binding differences may apply):
close(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkreply.html#close
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkReply.destroyed; argument details are not documented.
downloadProgress
downloadProgress(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkReply.downloadProgress; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QNetworkReply::downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
This signal is emitted to indicate the progress of the download part of this network request, if there's any. If there's no download associated with this request, this signal will be emitted once with 0 as the value of both bytesReceived and bytesTotal.
The bytesReceived parameter indicates the number of bytes received, while bytesTotal indicates the total number of bytes expected to be downloaded. If the number of bytes to be downloaded is not known, bytesTotal will be -1.
The download is finished when bytesReceived is equal to bytesTotal. At that time, bytesTotal will not be -1.
Note that the values of both bytesReceived and bytesTotal may be different from size(), the total number of bytes obtained through read() or readAll(), or the value of the header(ContentLengthHeader). The reason for that is that there may be protocol overhead or the data may be compressed during the download.
See also uploadProgress() and bytesAvailable().
Source: https://doc.qt.io/archives/qt-5.15/qnetworkreply.html#downloadProgress
encrypted
encrypted(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkReply.encrypted; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QNetworkReply::encrypted()
This signal is emitted when an SSL/TLS session has successfully completed the initial handshake. At this point, no user data has been transmitted. The signal can be used to perform additional checks on the certificate chain, for example to notify users when the certificate for a website has changed. If the reply does not match the expected criteria then it should be aborted by calling QNetworkReply::abort() by a slot connected to this signal. The SSL configuration in use can be inspected using the QNetworkReply::sslConfiguration() method.
Internally, QNetworkAccessManager may open multiple connections to a server, in order to allow it process requests in parallel. These connections may be reused, which means that the encrypted() signal would not be emitted. This means that you are only guaranteed to receive this signal for the first connection to a site in the lifespan of the QNetworkAccessManager.
This function was introduced in Qt 5.1.
See also QSslSocket::encrypted() and QNetworkAccessManager::encrypted().
Source: https://doc.qt.io/archives/qt-5.15/qnetworkreply.html#encrypted
error
error() -> Any
X.error()
Supplemental documentation: Qt 5 reference:
QNetworkReply::NetworkError QNetworkReply::error() const
Returns the error that was found during the processing of this request. If no error was found, returns NoError.
See also setError().
Upstream PySide2 reference signatures (binding differences may apply):
error(self) -> PySide2.QtNetwork.QNetworkReply.NetworkError
Source: https://doc.qt.io/archives/qt-5.15/qnetworkreply.html#error
errorOccurred
errorOccurred(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkReply.errorOccurred; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QNetworkReply::errorOccurred(QNetworkReply::NetworkError code)
This signal is emitted when the reply detects an error in processing. The finished() signal will probably follow, indicating that the connection is over.
The code parameter contains the code of the error that was detected. Call errorString() to obtain a textual representation of the error condition.
Note: Do not delete the object in the slot connected to this signal. Use deleteLater().
This function was introduced in Qt 5.15.
See also error() and errorString().
Source: https://doc.qt.io/archives/qt-5.15/qnetworkreply.html#errorOccurred
finished
finished(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkReply.finished; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QNetworkReply::finished()
This signal is emitted when the reply has finished processing. After this signal is emitted, there will be no more updates to the reply's data or metadata.
Unless close() or abort() have been called, the reply will still be opened for reading, so the data can be retrieved by calls to read() or readAll(). In particular, if no calls to read() were made as a result of readyRead(), a call to readAll() will retrieve the full contents in a QByteArray.
This signal is emitted in tandem with QNetworkAccessManager::finished() where that signal's reply parameter is this object.
Note: Do not delete the object in the slot connected to this signal. Use deleteLater().
You can also use isFinished() to check if a QNetworkReply has finished even before you receive the finished() signal.
See also setFinished(), QNetworkAccessManager::finished(), and isFinished().
Source: https://doc.qt.io/archives/qt-5.15/qnetworkreply.html#finished
hasRawHeader
hasRawHeader(headerName: Any) -> bool
X.hasRawHeader(headerName) -> bool
Supplemental documentation: Qt 5 reference:
bool QNetworkReply::hasRawHeader(const QByteArray \&headerName) const
Returns true if the raw header of name headerName was sent by the remote server
See also rawHeader().
Upstream PySide2 reference signatures (binding differences may apply):
hasRawHeader(self, headerName: PySide2.QtCore.QByteArray) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qnetworkreply.html#hasRawHeader