![]() |
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 124 of file qnetworkreplyhttpimpl_p.h.
QNetworkReplyHttpImplPrivate::QNetworkReplyHttpImplPrivate | ( | ) |
Definition at line 461 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 492 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::_q_bufferOutgoingData | ( | ) |
Definition at line 2077 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::_q_bufferOutgoingDataFinished | ( | ) |
Definition at line 2053 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::_q_cacheLoadReadyRead | ( | ) |
Definition at line 1990 of file qnetworkreplyhttpimpl.cpp.
References cacheLoadDevice, and isHttpRedirectResponse().
void QNetworkReplyHttpImplPrivate::_q_cacheSaveDeviceAboutToClose | ( | ) |
Definition at line 2070 of file qnetworkreplyhttpimpl.cpp.
References cacheSaveDevice.
void QNetworkReplyHttpImplPrivate::_q_error | ( | QNetworkReply::NetworkError | code, |
const QString & | errorString ) |
Definition at line 2233 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::_q_finished | ( | ) |
Definition at line 2187 of file qnetworkreplyhttpimpl.cpp.
References finished().
void QNetworkReplyHttpImplPrivate::_q_metaDataChanged | ( | ) |
Definition at line 2259 of file qnetworkreplyhttpimpl.cpp.
Referenced by replyDownloadMetaData().
void QNetworkReplyHttpImplPrivate::_q_startOperation | ( | ) |
Definition at line 1972 of file qnetworkreplyhttpimpl.cpp.
References setupTransferTimeout(), and synchronous.
void QNetworkReplyHttpImplPrivate::_q_transferTimedOut | ( | ) |
Definition at line 2120 of file qnetworkreplyhttpimpl.cpp.
bool QNetworkReplyHttpImplPrivate::canResume | ( | ) | const |
Definition at line 1937 of file qnetworkreplyhttpimpl.cpp.
References downloadZerocopyBuffer.
void QNetworkReplyHttpImplPrivate::checkForRedirect | ( | const int | statusCode | ) |
Definition at line 1396 of file qnetworkreplyhttpimpl.cpp.
Referenced by replyDownloadMetaData(), and sendCacheContents().
void QNetworkReplyHttpImplPrivate::completeCacheSave | ( | ) |
Definition at line 2327 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, and cacheSaveDevice.
Referenced by finished().
|
static |
Definition at line 637 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::createCache | ( | ) |
Definition at line 2282 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled.
Referenced by setCachingEnabled().
QNetworkRequest QNetworkReplyHttpImplPrivate::createRedirectRequest | ( | const QNetworkRequest & | originalRequests, |
const QUrl & | url, | ||
int | maxRedirectsRemainig ) |
Definition at line 1284 of file qnetworkreplyhttpimpl.cpp.
QNonContiguousByteDevice * QNetworkReplyHttpImplPrivate::createUploadByteDevice | ( | ) |
Definition at line 2167 of file qnetworkreplyhttpimpl.cpp.
References outgoingData.
Definition at line 2147 of file qnetworkreplyhttpimpl.cpp.
References setupTransferTimeout().
void QNetworkReplyHttpImplPrivate::error | ( | QNetworkReply::NetworkError | code, |
const QString & | errorString ) |
Definition at line 2239 of file qnetworkreplyhttpimpl.cpp.
QNetworkCacheMetaData QNetworkReplyHttpImplPrivate::fetchCacheMetaData | ( | const QNetworkCacheMetaData & | metaData | ) | const |
Definition at line 1809 of file qnetworkreplyhttpimpl.cpp.
References statusCode.
void QNetworkReplyHttpImplPrivate::finished | ( | ) |
Definition at line 2193 of file qnetworkreplyhttpimpl.cpp.
References completeCacheSave().
Referenced by _q_finished(), postRequest(), and replyFinished().
void QNetworkReplyHttpImplPrivate::followRedirect | ( | ) |
Definition at line 1379 of file qnetworkreplyhttpimpl.cpp.
Referenced by onRedirected().
QNetworkAccessManager::Operation QNetworkReplyHttpImplPrivate::getRedirectOperation | ( | QNetworkAccessManager::Operation | currentOp, |
int | httpStatus ) |
Definition at line 1259 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::httpAuthenticationRequired | ( | const QHttpNetworkRequest & | request, |
QAuthenticator * | auth ) |
Definition at line 1582 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::httpError | ( | QNetworkReply::NetworkError | error, |
const QString & | errorString ) |
Definition at line 1596 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::initCacheSaveDevice | ( | ) |
Definition at line 1091 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, and cacheSaveDevice.
Referenced by replyDownloadData(), and replyDownloadProgressSlot().
void QNetworkReplyHttpImplPrivate::invalidateCache | ( | ) |
Definition at line 1084 of file qnetworkreplyhttpimpl.cpp.
Referenced by postRequest().
bool QNetworkReplyHttpImplPrivate::isCachingAllowed | ( | ) | const |
Definition at line 2322 of file qnetworkreplyhttpimpl.cpp.
Referenced by replyDownloadData(), and replyDownloadProgressSlot().
bool QNetworkReplyHttpImplPrivate::isCachingEnabled | ( | ) | const |
Definition at line 2291 of file qnetworkreplyhttpimpl.cpp.
Referenced by replyDownloadMetaData().
bool QNetworkReplyHttpImplPrivate::isHttpRedirectResponse | ( | ) | const |
Definition at line 1279 of file qnetworkreplyhttpimpl.cpp.
Referenced by _q_cacheLoadReadyRead(), replyDownloadData(), replyDownloadMetaData(), replyDownloadProgressSlot(), and sendCacheContents().
bool QNetworkReplyHttpImplPrivate::loadFromCacheIfAllowed | ( | QHttpNetworkRequest & | httpRequest | ) |
Definition at line 504 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::maybeDropUploadDevice | ( | const QNetworkRequest & | newHttpRequest | ) |
Definition at line 650 of file qnetworkreplyhttpimpl.cpp.
References outgoingData.
void QNetworkReplyHttpImplPrivate::onRedirected | ( | const QUrl & | redirectUrl, |
int | httpStatus, | ||
int | maxRedirectsRemainig ) |
Definition at line 1295 of file qnetworkreplyhttpimpl.cpp.
References followRedirect(), QNetworkHeadersPrivate::fromCookieList(), and outgoingData.
void QNetworkReplyHttpImplPrivate::postRequest | ( | const QNetworkRequest & | newHttpRequest | ) |
Definition at line 693 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 1589 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::replyDownloadData | ( | QByteArray | d | ) |
Definition at line 1132 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 1416 of file qnetworkreplyhttpimpl.cpp.
References _q_metaDataChanged(), checkForRedirect(), isCachingEnabled(), isHttpRedirectResponse(), setCachingEnabled(), and statusCode.
void QNetworkReplyHttpImplPrivate::replyDownloadProgressSlot | ( | qint64 | bytesReceived, |
qint64 | bytesTotal ) |
Definition at line 1533 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, cacheSaveDevice, downloadZerocopyBuffer, initCacheSaveDevice(), isCachingAllowed(), isHttpRedirectResponse(), and setupTransferTimeout().
void QNetworkReplyHttpImplPrivate::replyEncrypted | ( | ) |
Definition at line 1608 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::replyFinished | ( | ) |
Definition at line 1249 of file qnetworkreplyhttpimpl.cpp.
References finished(), and loadingFromCache.
void QNetworkReplyHttpImplPrivate::replyPreSharedKeyAuthenticationRequiredSlot | ( | QSslPreSharedKeyAuthenticator * | authenticator | ) |
Definition at line 1635 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::replySslConfigurationChanged | ( | const QSslConfiguration & | newSslConfiguration | ) |
Definition at line 1626 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::replySslErrors | ( | const QList< QSslError > & | list, |
bool * | ignoreAll, | ||
QList< QSslError > * | toBeIgnored ) |
Definition at line 1614 of file qnetworkreplyhttpimpl.cpp.
References pendingIgnoreAllSslErrors.
void QNetworkReplyHttpImplPrivate::resetUploadDataSlot | ( | bool * | r | ) |
Definition at line 1643 of file qnetworkreplyhttpimpl.cpp.
bool QNetworkReplyHttpImplPrivate::sendCacheContents | ( | const QNetworkCacheMetaData & | metaData | ) |
Definition at line 1710 of file qnetworkreplyhttpimpl.cpp.
References cacheLoadDevice, checkForRedirect(), isHttpRedirectResponse(), loadingFromCache, setCachingEnabled(), and statusCode.
Definition at line 1653 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::setCachingEnabled | ( | bool | enable | ) |
Definition at line 2296 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, cacheSaveDevice, and createCache().
Referenced by replyDownloadMetaData(), and sendCacheContents().
Definition at line 1967 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::setupTransferTimeout | ( | ) |
Definition at line 2126 of file qnetworkreplyhttpimpl.cpp.
Referenced by _q_startOperation(), emitReplyUploadProgress(), replyDownloadData(), and replyDownloadProgressSlot().
void QNetworkReplyHttpImplPrivate::uploadByteDeviceReadyReadSlot | ( | ) |
Definition at line 1695 of file qnetworkreplyhttpimpl.cpp.
References uploadDeviceChoking.
Definition at line 1668 of file qnetworkreplyhttpimpl.cpp.
References uploadDeviceChoking.
qint64 QNetworkReplyHttpImplPrivate::bytesBuffered |
Definition at line 205 of file qnetworkreplyhttpimpl_p.h.
qint64 QNetworkReplyHttpImplPrivate::bytesDownloaded |
Definition at line 204 of file qnetworkreplyhttpimpl_p.h.
qint64 QNetworkReplyHttpImplPrivate::bytesUploaded |
Definition at line 177 of file qnetworkreplyhttpimpl_p.h.
bool QNetworkReplyHttpImplPrivate::cacheEnabled |
Definition at line 191 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), completeCacheSave(), createCache(), initCacheSaveDevice(), replyDownloadData(), replyDownloadProgressSlot(), and setCachingEnabled().
QIODevice* QNetworkReplyHttpImplPrivate::cacheLoadDevice |
Definition at line 187 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), _q_cacheLoadReadyRead(), and sendCacheContents().
QIODevice* QNetworkReplyHttpImplPrivate::cacheSaveDevice |
Definition at line 190 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), _q_cacheSaveDeviceAboutToClose(), completeCacheSave(), initCacheSaveDevice(), replyDownloadData(), replyDownloadProgressSlot(), and setCachingEnabled().
QDecompressHelper QNetworkReplyHttpImplPrivate::decompressHelper |
Definition at line 233 of file qnetworkreplyhttpimpl_p.h.
qint64 QNetworkReplyHttpImplPrivate::downloadBufferCurrentSize |
Definition at line 216 of file qnetworkreplyhttpimpl_p.h.
QSharedPointer<char> QNetworkReplyHttpImplPrivate::downloadBufferPointer |
Definition at line 217 of file qnetworkreplyhttpimpl_p.h.
qint64 QNetworkReplyHttpImplPrivate::downloadBufferReadPosition |
Definition at line 215 of file qnetworkreplyhttpimpl_p.h.
char* QNetworkReplyHttpImplPrivate::downloadZerocopyBuffer |
Definition at line 218 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), canResume(), and replyDownloadProgressSlot().
QHttpNetworkRequest QNetworkReplyHttpImplPrivate::httpRequest |
Definition at line 157 of file qnetworkreplyhttpimpl_p.h.
QNetworkProxy QNetworkReplyHttpImplPrivate::lastProxyAuthentication |
Definition at line 196 of file qnetworkreplyhttpimpl_p.h.
qint64 QNetworkReplyHttpImplPrivate::lastReadyReadEmittedSize = 0 |
Definition at line 209 of file qnetworkreplyhttpimpl_p.h.
bool QNetworkReplyHttpImplPrivate::loadingFromCache |
Definition at line 188 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), postRequest(), replyFinished(), and sendCacheContents().
QNetworkAccessManager* QNetworkReplyHttpImplPrivate::manager |
Definition at line 155 of file qnetworkreplyhttpimpl_p.h.
QNetworkAccessManagerPrivate* QNetworkReplyHttpImplPrivate::managerPrivate |
Definition at line 156 of file qnetworkreplyhttpimpl_p.h.
QIODevice* QNetworkReplyHttpImplPrivate::outgoingData |
Definition at line 172 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), createUploadByteDevice(), maybeDropUploadDevice(), onRedirected(), and postRequest().
std::shared_ptr<QRingBuffer> QNetworkReplyHttpImplPrivate::outgoingDataBuffer |
Definition at line 173 of file qnetworkreplyhttpimpl_p.h.
std::shared_ptr<QAtomicInt> QNetworkReplyHttpImplPrivate::pendingDownloadDataEmissions |
Definition at line 221 of file qnetworkreplyhttpimpl_p.h.
std::shared_ptr<QAtomicInt> QNetworkReplyHttpImplPrivate::pendingDownloadProgressEmissions |
Definition at line 222 of file qnetworkreplyhttpimpl_p.h.
bool QNetworkReplyHttpImplPrivate::pendingIgnoreAllSslErrors |
Definition at line 227 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), and replySslErrors().
Definition at line 228 of file qnetworkreplyhttpimpl_p.h.
QString QNetworkReplyHttpImplPrivate::reasonPhrase |
Definition at line 164 of file qnetworkreplyhttpimpl_p.h.
QNetworkRequest QNetworkReplyHttpImplPrivate::redirectRequest |
Definition at line 231 of file qnetworkreplyhttpimpl_p.h.
quint64 QNetworkReplyHttpImplPrivate::resumeOffset |
Definition at line 202 of file qnetworkreplyhttpimpl_p.h.
std::unique_ptr<QSslConfiguration> QNetworkReplyHttpImplPrivate::sslConfiguration |
Definition at line 226 of file qnetworkreplyhttpimpl_p.h.
State QNetworkReplyHttpImplPrivate::state |
Definition at line 160 of file qnetworkreplyhttpimpl_p.h.
int QNetworkReplyHttpImplPrivate::statusCode |
Definition at line 163 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), fetchCacheMetaData(), replyDownloadMetaData(), and sendCacheContents().
bool QNetworkReplyHttpImplPrivate::synchronous |
Definition at line 158 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), _q_startOperation(), postRequest(), and replyDownloadData().
QTimer* QNetworkReplyHttpImplPrivate::transferTimeout |
Definition at line 211 of file qnetworkreplyhttpimpl_p.h.
std::shared_ptr<QNonContiguousByteDevice> QNetworkReplyHttpImplPrivate::uploadByteDevice |
Definition at line 169 of file qnetworkreplyhttpimpl_p.h.
qint64 QNetworkReplyHttpImplPrivate::uploadByteDevicePosition |
Definition at line 170 of file qnetworkreplyhttpimpl_p.h.
bool QNetworkReplyHttpImplPrivate::uploadDeviceChoking |
Definition at line 171 of file qnetworkreplyhttpimpl_p.h.
Referenced by QNetworkReplyHttpImplPrivate(), uploadByteDeviceReadyReadSlot(), and wantUploadDataSlot().
QUrl QNetworkReplyHttpImplPrivate::urlForLastAuthentication |
Definition at line 194 of file qnetworkreplyhttpimpl_p.h.