![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qnetworkreplyhttpimpl_p.h>
Static Public Member Functions | |
| static QHttpNetworkRequest::Priority | convert (QNetworkRequest::Priority prio) |
| Static Public Member Functions inherited from QNetworkReplyPrivate | |
| static void | setManager (QNetworkReply *reply, QNetworkAccessManager *manager) |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| template<typename Func1, typename Func2> | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| template<typename Func1, typename Func2> | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
| Static Public Member Functions inherited from QNetworkHeadersPrivate | |
| static QDateTime | fromHttpDate (QByteArrayView value) |
| static QByteArray | toHttpDate (const QDateTime &dt) |
| static std::optional< qint64 > | toInt (QByteArrayView value) |
| static QByteArray | fromCookieList (const NetworkCookieList &cookies) |
| static std::optional< NetworkCookieList > | toSetCookieList (const QList< QByteArray > &values) |
| static std::optional< NetworkCookieList > | toCookieList (const QList< QByteArray > &values) |
| static RawHeadersList | fromHttpToRaw (const QHttpHeaders &headers) |
| static QHttpHeaders | fromRawToHttp (const RawHeadersList &raw) |
Additional Inherited Members | |
| Public Types inherited from QNetworkReplyPrivate | |
| enum | State { Idle , Buffering , Working , Finished , Aborted } |
| Public Types inherited from QIODevicePrivate | |
| enum class | ReadLineOption { NotNullTerminated , NullTerminated } |
| enum | AccessMode : quint8 { Unset , Sequential , RandomAccess } |
| Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
| Public Types inherited from QNetworkHeadersPrivate | |
| typedef std::pair< QByteArray, QByteArray > | RawHeaderPair |
| typedef QList< RawHeaderPair > | RawHeadersList |
| typedef QHash< QNetworkRequest::KnownHeaders, QVariant > | CookedHeadersMap |
| typedef QHash< QNetworkRequest::Attribute, QVariant > | AttributesMap |
| typedef QList< QNetworkCookie > | NetworkCookieList |
| Static Public Attributes inherited from QNetworkReplyPrivate | |
| static const int | progressSignalInterval = 100 |
Definition at line 125 of file qnetworkreplyhttpimpl_p.h.
| QNetworkReplyHttpImplPrivate::QNetworkReplyHttpImplPrivate | ( | ) |
Definition at line 467 of file qnetworkreplyhttpimpl.cpp.
References QNetworkReplyHttpImplPrivate(), cacheEnabled, cacheLoadDevice, cacheSaveDevice, downloadZerocopyBuffer, loadingFromCache, outgoingData, pendingIgnoreAllSslErrors, statusCode, synchronous, and uploadDeviceChoking.
Referenced by QNetworkReplyHttpImplPrivate().
| QNetworkReplyHttpImplPrivate::~QNetworkReplyHttpImplPrivate | ( | ) |
Definition at line 498 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::_q_bufferOutgoingData | ( | ) |
Definition at line 2083 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::_q_bufferOutgoingDataFinished | ( | ) |
Definition at line 2059 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::_q_cacheLoadReadyRead | ( | ) |
Definition at line 1996 of file qnetworkreplyhttpimpl.cpp.
References cacheLoadDevice, and isHttpRedirectResponse().
| void QNetworkReplyHttpImplPrivate::_q_cacheSaveDeviceAboutToClose | ( | ) |
Definition at line 2076 of file qnetworkreplyhttpimpl.cpp.
References cacheSaveDevice.
| void QNetworkReplyHttpImplPrivate::_q_error | ( | QNetworkReply::NetworkError | code, |
| const QString & | errorString ) |
Definition at line 2239 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::_q_finished | ( | ) |
Definition at line 2193 of file qnetworkreplyhttpimpl.cpp.
References finished().
| void QNetworkReplyHttpImplPrivate::_q_metaDataChanged | ( | ) |
Definition at line 2267 of file qnetworkreplyhttpimpl.cpp.
Referenced by replyDownloadMetaData().
| void QNetworkReplyHttpImplPrivate::_q_startOperation | ( | ) |
Definition at line 1978 of file qnetworkreplyhttpimpl.cpp.
References setupTransferTimeout(), and synchronous.
| void QNetworkReplyHttpImplPrivate::_q_transferTimedOut | ( | ) |
Definition at line 2126 of file qnetworkreplyhttpimpl.cpp.
| bool QNetworkReplyHttpImplPrivate::canResume | ( | ) | const |
Definition at line 1943 of file qnetworkreplyhttpimpl.cpp.
References downloadZerocopyBuffer.
| void QNetworkReplyHttpImplPrivate::checkForRedirect | ( | const int | statusCode | ) |
Definition at line 1402 of file qnetworkreplyhttpimpl.cpp.
Referenced by replyDownloadMetaData(), and sendCacheContents().
| void QNetworkReplyHttpImplPrivate::completeCacheSave | ( | ) |
Definition at line 2335 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, and cacheSaveDevice.
Referenced by finished().
|
static |
Definition at line 643 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::createCache | ( | ) |
Definition at line 2290 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled.
Referenced by setCachingEnabled().
| QNetworkRequest QNetworkReplyHttpImplPrivate::createRedirectRequest | ( | const QNetworkRequest & | originalRequests, |
| const QUrl & | url, | ||
| int | maxRedirectsRemainig ) |
Definition at line 1290 of file qnetworkreplyhttpimpl.cpp.
| QNonContiguousByteDevice * QNetworkReplyHttpImplPrivate::createUploadByteDevice | ( | ) |
Definition at line 2173 of file qnetworkreplyhttpimpl.cpp.
References outgoingData.
Definition at line 2153 of file qnetworkreplyhttpimpl.cpp.
References setupTransferTimeout().
| void QNetworkReplyHttpImplPrivate::error | ( | QNetworkReply::NetworkError | code, |
| const QString & | errorString ) |
Definition at line 2245 of file qnetworkreplyhttpimpl.cpp.
| QNetworkCacheMetaData QNetworkReplyHttpImplPrivate::fetchCacheMetaData | ( | const QNetworkCacheMetaData & | metaData | ) | const |
Definition at line 1815 of file qnetworkreplyhttpimpl.cpp.
References statusCode.
| void QNetworkReplyHttpImplPrivate::finished | ( | ) |
Definition at line 2199 of file qnetworkreplyhttpimpl.cpp.
References completeCacheSave().
Referenced by _q_finished(), postRequest(), and replyFinished().
| void QNetworkReplyHttpImplPrivate::followRedirect | ( | ) |
Definition at line 1385 of file qnetworkreplyhttpimpl.cpp.
Referenced by onRedirected().
| QNetworkAccessManager::Operation QNetworkReplyHttpImplPrivate::getRedirectOperation | ( | QNetworkAccessManager::Operation | currentOp, |
| int | httpStatus ) |
Definition at line 1265 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::httpAuthenticationRequired | ( | const QHttpNetworkRequest & | request, |
| QAuthenticator * | auth ) |
Definition at line 1588 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::httpError | ( | QNetworkReply::NetworkError | error, |
| const QString & | errorString ) |
Definition at line 1602 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::initCacheSaveDevice | ( | ) |
Definition at line 1097 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, and cacheSaveDevice.
Referenced by replyDownloadData(), and replyDownloadProgressSlot().
| void QNetworkReplyHttpImplPrivate::invalidateCache | ( | ) |
Definition at line 1090 of file qnetworkreplyhttpimpl.cpp.
Referenced by postRequest().
| bool QNetworkReplyHttpImplPrivate::isCachingAllowed | ( | ) | const |
Definition at line 2330 of file qnetworkreplyhttpimpl.cpp.
Referenced by replyDownloadData(), and replyDownloadProgressSlot().
| bool QNetworkReplyHttpImplPrivate::isCachingEnabled | ( | ) | const |
Definition at line 2299 of file qnetworkreplyhttpimpl.cpp.
Referenced by replyDownloadMetaData().
| bool QNetworkReplyHttpImplPrivate::isHttpRedirectResponse | ( | ) | const |
Definition at line 1285 of file qnetworkreplyhttpimpl.cpp.
Referenced by _q_cacheLoadReadyRead(), replyDownloadData(), replyDownloadMetaData(), replyDownloadProgressSlot(), and sendCacheContents().
| bool QNetworkReplyHttpImplPrivate::loadFromCacheIfAllowed | ( | QHttpNetworkRequest & | httpRequest | ) |
Definition at line 510 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::maybeDropUploadDevice | ( | const QNetworkRequest & | newHttpRequest | ) |
Definition at line 656 of file qnetworkreplyhttpimpl.cpp.
References outgoingData.
| void QNetworkReplyHttpImplPrivate::onRedirected | ( | const QUrl & | redirectUrl, |
| int | httpStatus, | ||
| int | maxRedirectsRemainig ) |
Definition at line 1301 of file qnetworkreplyhttpimpl.cpp.
References followRedirect(), QNetworkHeadersPrivate::fromCookieList(), and outgoingData.
| void QNetworkReplyHttpImplPrivate::postRequest | ( | const QNetworkRequest & | newHttpRequest | ) |
Definition at line 699 of file qnetworkreplyhttpimpl.cpp.
References finished(), invalidateCache(), loadingFromCache, outgoingData, QHttpThreadDelegate::ssl, QHttpThreadDelegate::synchronous, and synchronous.
| void QNetworkReplyHttpImplPrivate::proxyAuthenticationRequired | ( | const QNetworkProxy & | proxy, |
| QAuthenticator * | auth ) |
Definition at line 1595 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::replyDownloadData | ( | QByteArray | d | ) |
Definition at line 1138 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, cacheSaveDevice, initCacheSaveDevice(), isCachingAllowed(), isHttpRedirectResponse(), setupTransferTimeout(), and synchronous.
| void QNetworkReplyHttpImplPrivate::replyDownloadMetaData | ( | const QHttpHeaders & | hm, |
| int | sc, | ||
| const QString & | rp, | ||
| bool | pu, | ||
| QSharedPointer< char > | db, | ||
| qint64 | contentLength, | ||
| qint64 | removedContentLength, | ||
| bool | h2Used, | ||
| bool | isCompressed ) |
Definition at line 1422 of file qnetworkreplyhttpimpl.cpp.
References _q_metaDataChanged(), checkForRedirect(), isCachingEnabled(), isHttpRedirectResponse(), setCachingEnabled(), and statusCode.
| void QNetworkReplyHttpImplPrivate::replyDownloadProgressSlot | ( | qint64 | bytesReceived, |
| qint64 | bytesTotal ) |
Definition at line 1539 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, cacheSaveDevice, downloadZerocopyBuffer, initCacheSaveDevice(), isCachingAllowed(), isHttpRedirectResponse(), and setupTransferTimeout().
| void QNetworkReplyHttpImplPrivate::replyEncrypted | ( | ) |
Definition at line 1614 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::replyFinished | ( | ) |
Definition at line 1255 of file qnetworkreplyhttpimpl.cpp.
References finished(), and loadingFromCache.
| void QNetworkReplyHttpImplPrivate::replyPreSharedKeyAuthenticationRequiredSlot | ( | QSslPreSharedKeyAuthenticator * | authenticator | ) |
Definition at line 1641 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::replySslConfigurationChanged | ( | const QSslConfiguration & | newSslConfiguration | ) |
Definition at line 1632 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::replySslErrors | ( | const QList< QSslError > & | list, |
| bool * | ignoreAll, | ||
| QList< QSslError > * | toBeIgnored ) |
Definition at line 1620 of file qnetworkreplyhttpimpl.cpp.
References pendingIgnoreAllSslErrors.
| void QNetworkReplyHttpImplPrivate::resetUploadDataSlot | ( | bool * | r | ) |
Definition at line 1649 of file qnetworkreplyhttpimpl.cpp.
| bool QNetworkReplyHttpImplPrivate::sendCacheContents | ( | const QNetworkCacheMetaData & | metaData | ) |
Definition at line 1716 of file qnetworkreplyhttpimpl.cpp.
References cacheLoadDevice, checkForRedirect(), isHttpRedirectResponse(), loadingFromCache, setCachingEnabled(), and statusCode.
Definition at line 1659 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::setCachingEnabled | ( | bool | enable | ) |
Definition at line 2304 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, cacheSaveDevice, and createCache().
Referenced by replyDownloadMetaData(), and sendCacheContents().
Definition at line 1973 of file qnetworkreplyhttpimpl.cpp.
| void QNetworkReplyHttpImplPrivate::setupTransferTimeout | ( | ) |
Definition at line 2132 of file qnetworkreplyhttpimpl.cpp.
Referenced by _q_startOperation(), emitReplyUploadProgress(), replyDownloadData(), and replyDownloadProgressSlot().
| void QNetworkReplyHttpImplPrivate::uploadByteDeviceReadyReadSlot | ( | ) |
Definition at line 1701 of file qnetworkreplyhttpimpl.cpp.
References uploadDeviceChoking.
Definition at line 1674 of file qnetworkreplyhttpimpl.cpp.
References uploadDeviceChoking.
| qint64 QNetworkReplyHttpImplPrivate::bytesBuffered |
Definition at line 206 of file qnetworkreplyhttpimpl_p.h.
| qint64 QNetworkReplyHttpImplPrivate::bytesDownloaded |
Definition at line 205 of file qnetworkreplyhttpimpl_p.h.
| qint64 QNetworkReplyHttpImplPrivate::bytesUploaded |
Definition at line 178 of file qnetworkreplyhttpimpl_p.h.
| bool QNetworkReplyHttpImplPrivate::cacheEnabled |
Definition at line 192 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), completeCacheSave(), createCache(), initCacheSaveDevice(), replyDownloadData(), replyDownloadProgressSlot(), and setCachingEnabled().
| QIODevice* QNetworkReplyHttpImplPrivate::cacheLoadDevice |
Definition at line 188 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), _q_cacheLoadReadyRead(), and sendCacheContents().
| QIODevice* QNetworkReplyHttpImplPrivate::cacheSaveDevice |
Definition at line 191 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), _q_cacheSaveDeviceAboutToClose(), completeCacheSave(), initCacheSaveDevice(), replyDownloadData(), replyDownloadProgressSlot(), and setCachingEnabled().
| QDecompressHelper QNetworkReplyHttpImplPrivate::decompressHelper |
Definition at line 234 of file qnetworkreplyhttpimpl_p.h.
| qint64 QNetworkReplyHttpImplPrivate::downloadBufferCurrentSize |
Definition at line 217 of file qnetworkreplyhttpimpl_p.h.
| QSharedPointer<char> QNetworkReplyHttpImplPrivate::downloadBufferPointer |
Definition at line 218 of file qnetworkreplyhttpimpl_p.h.
| qint64 QNetworkReplyHttpImplPrivate::downloadBufferReadPosition |
Definition at line 216 of file qnetworkreplyhttpimpl_p.h.
| char* QNetworkReplyHttpImplPrivate::downloadZerocopyBuffer |
Definition at line 219 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), canResume(), and replyDownloadProgressSlot().
| QHttpNetworkRequest QNetworkReplyHttpImplPrivate::httpRequest |
Definition at line 158 of file qnetworkreplyhttpimpl_p.h.
| QNetworkProxy QNetworkReplyHttpImplPrivate::lastProxyAuthentication |
Definition at line 197 of file qnetworkreplyhttpimpl_p.h.
| qint64 QNetworkReplyHttpImplPrivate::lastReadyReadEmittedSize = 0 |
Definition at line 210 of file qnetworkreplyhttpimpl_p.h.
| bool QNetworkReplyHttpImplPrivate::loadingFromCache |
Definition at line 189 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), postRequest(), replyFinished(), and sendCacheContents().
| QNetworkAccessManager* QNetworkReplyHttpImplPrivate::manager |
Definition at line 156 of file qnetworkreplyhttpimpl_p.h.
| QNetworkAccessManagerPrivate* QNetworkReplyHttpImplPrivate::managerPrivate |
Definition at line 157 of file qnetworkreplyhttpimpl_p.h.
| QIODevice* QNetworkReplyHttpImplPrivate::outgoingData |
Definition at line 173 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), createUploadByteDevice(), maybeDropUploadDevice(), onRedirected(), and postRequest().
| std::shared_ptr<QRingBuffer> QNetworkReplyHttpImplPrivate::outgoingDataBuffer |
Definition at line 174 of file qnetworkreplyhttpimpl_p.h.
| std::shared_ptr<QAtomicInt> QNetworkReplyHttpImplPrivate::pendingDownloadDataEmissions |
Definition at line 222 of file qnetworkreplyhttpimpl_p.h.
| std::shared_ptr<QAtomicInt> QNetworkReplyHttpImplPrivate::pendingDownloadProgressEmissions |
Definition at line 223 of file qnetworkreplyhttpimpl_p.h.
| bool QNetworkReplyHttpImplPrivate::pendingIgnoreAllSslErrors |
Definition at line 228 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), and replySslErrors().
Definition at line 229 of file qnetworkreplyhttpimpl_p.h.
| QString QNetworkReplyHttpImplPrivate::reasonPhrase |
Definition at line 165 of file qnetworkreplyhttpimpl_p.h.
| QNetworkRequest QNetworkReplyHttpImplPrivate::redirectRequest |
Definition at line 232 of file qnetworkreplyhttpimpl_p.h.
| quint64 QNetworkReplyHttpImplPrivate::resumeOffset |
Definition at line 203 of file qnetworkreplyhttpimpl_p.h.
| std::unique_ptr<QSslConfiguration> QNetworkReplyHttpImplPrivate::sslConfiguration |
Definition at line 227 of file qnetworkreplyhttpimpl_p.h.
| State QNetworkReplyHttpImplPrivate::state |
Definition at line 161 of file qnetworkreplyhttpimpl_p.h.
| int QNetworkReplyHttpImplPrivate::statusCode |
Definition at line 164 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), fetchCacheMetaData(), replyDownloadMetaData(), and sendCacheContents().
| bool QNetworkReplyHttpImplPrivate::synchronous |
Definition at line 159 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), _q_startOperation(), postRequest(), and replyDownloadData().
| QTimer* QNetworkReplyHttpImplPrivate::transferTimeout |
Definition at line 212 of file qnetworkreplyhttpimpl_p.h.
| std::shared_ptr<QNonContiguousByteDevice> QNetworkReplyHttpImplPrivate::uploadByteDevice |
Definition at line 170 of file qnetworkreplyhttpimpl_p.h.
| qint64 QNetworkReplyHttpImplPrivate::uploadByteDevicePosition |
Definition at line 171 of file qnetworkreplyhttpimpl_p.h.
| bool QNetworkReplyHttpImplPrivate::uploadDeviceChoking |
Definition at line 172 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), uploadByteDeviceReadyReadSlot(), and wantUploadDataSlot().
| QUrl QNetworkReplyHttpImplPrivate::urlForLastAuthentication |
Definition at line 195 of file qnetworkreplyhttpimpl_p.h.