Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qnetworkreplyhttpimpl_p.h>
Static Public Member Functions | |
static QHttpNetworkRequest::Priority | convert (const 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 | 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 QPair< 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 122 of file qnetworkreplyhttpimpl_p.h.
QNetworkReplyHttpImplPrivate::QNetworkReplyHttpImplPrivate | ( | ) |
Definition at line 439 of file qnetworkreplyhttpimpl.cpp.
QNetworkReplyHttpImplPrivate::~QNetworkReplyHttpImplPrivate | ( | ) |
Definition at line 470 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::_q_bufferOutgoingData | ( | ) |
Definition at line 1998 of file qnetworkreplyhttpimpl.cpp.
References _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), QIODevice::bytesAvailable(), bytesBuffered, QObject::connect(), forever, outgoingData, outgoingDataBuffer, QIODevice::read(), SIGNAL, and SLOT.
Referenced by _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), and onRedirected().
void QNetworkReplyHttpImplPrivate::_q_bufferOutgoingDataFinished | ( | ) |
Definition at line 1974 of file qnetworkreplyhttpimpl.cpp.
References _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), QNetworkReplyPrivate::Buffering, QObject::disconnect(), QMetaObject::invokeMethod(), outgoingData, Qt::QueuedConnection, SIGNAL, SLOT, and state.
Referenced by _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), and onRedirected().
void QNetworkReplyHttpImplPrivate::_q_cacheLoadReadyRead | ( | ) |
Definition at line 1912 of file qnetworkreplyhttpimpl.cpp.
References QIODevice::atEnd(), QIODevice::bytesAvailable(), bytesDownloaded, cacheLoadDevice, QHttpHeaders::ContentLength, QObject::deleteLater(), QNetworkReplyPrivate::downloadProgressSignalChoke, QElapsedTimer::elapsed(), emit, QNetworkHeadersPrivate::headers(), QMetaObject::invokeMethod(), isHttpRedirectResponse(), QIODevice::isOpen(), QIODevice::isSequential(), QNetworkReplyPrivate::progressSignalInterval, Qt::QueuedConnection, QIODevice::read(), QIODevice::readAll(), QElapsedTimer::restart(), state, QNetworkHeadersPrivate::toInt(), QIODevice::ungetChar(), and QNetworkReplyPrivate::Working.
Referenced by sendCacheContents().
void QNetworkReplyHttpImplPrivate::_q_cacheSaveDeviceAboutToClose | ( | ) |
Definition at line 1991 of file qnetworkreplyhttpimpl.cpp.
References cacheSaveDevice.
Referenced by initCacheSaveDevice().
void QNetworkReplyHttpImplPrivate::_q_error | ( | QNetworkReply::NetworkError | code, |
const QString & | errorString ) |
Definition at line 2156 of file qnetworkreplyhttpimpl.cpp.
References error, and errorMessage().
void QNetworkReplyHttpImplPrivate::_q_finished | ( | ) |
Definition at line 2110 of file qnetworkreplyhttpimpl.cpp.
References finished().
void QNetworkReplyHttpImplPrivate::_q_metaDataChanged | ( | ) |
Definition at line 2182 of file qnetworkreplyhttpimpl.cpp.
References QNetworkRequest::attribute(), QNetworkRequest::Automatic, QNetworkAccessManager::cookieJar(), QNetworkRequest::CookieSaveControlAttribute, emit, QNetworkHeadersPrivate::headers(), manager, Q_ASSERT, QNetworkReplyPrivate::request, QHttpHeaders::SetCookie, QNetworkCookieJar::setCookiesFromUrl(), QVariant::toInt(), QNetworkHeadersPrivate::toSetCookieList(), and QNetworkReplyPrivate::url.
Referenced by replyDownloadMetaData().
void QNetworkReplyHttpImplPrivate::_q_startOperation | ( | ) |
Definition at line 1894 of file qnetworkreplyhttpimpl.cpp.
References QNetworkReplyPrivate::Finished, postRequest(), QNetworkReplyPrivate::request, setupTransferTimeout(), state, synchronous, and QNetworkReplyPrivate::Working.
void QNetworkReplyHttpImplPrivate::_q_transferTimedOut | ( | ) |
Definition at line 2041 of file qnetworkreplyhttpimpl.cpp.
Referenced by setupTransferTimeout().
bool QNetworkReplyHttpImplPrivate::canResume | ( | ) | const |
Definition at line 1859 of file qnetworkreplyhttpimpl.cpp.
References QHttpHeaders::AcceptRanges, bytesEqualPrefix(), downloadZerocopyBuffer, QNetworkAccessManager::GetOperation, QNetworkReplyPrivate::operation, and QHttpHeaders::Range.
void QNetworkReplyHttpImplPrivate::checkForRedirect | ( | const int | statusCode | ) |
Definition at line 1319 of file qnetworkreplyhttpimpl.cpp.
References QString::fromUtf8(), header(), QUrl::isValid(), locationHeader(), QNetworkRequest::RedirectionTargetAttribute, statusCode, and QNetworkReplyPrivate::url.
Referenced by replyDownloadMetaData(), and sendCacheContents().
void QNetworkReplyHttpImplPrivate::completeCacheSave | ( | ) |
Definition at line 2250 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, cacheSaveDevice, QNetworkReplyPrivate::errorCode, QAbstractNetworkCache::insert(), managerPrivate, QNetworkAccessManagerPrivate::networkCache, QNetworkReply::NoError, QAbstractNetworkCache::remove(), and QNetworkReplyPrivate::url.
Referenced by finished().
|
static |
Definition at line 615 of file qnetworkreplyhttpimpl.cpp.
References QHttpNetworkRequest::HighPriority, QNetworkRequest::HighPriority, QHttpNetworkRequest::LowPriority, QNetworkRequest::LowPriority, QHttpNetworkRequest::NormalPriority, and QNetworkRequest::NormalPriority.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::createCache | ( | ) |
Definition at line 2205 of file qnetworkreplyhttpimpl.cpp.
References QNetworkRequest::attribute(), cacheEnabled, QNetworkRequest::CacheSaveControlAttribute, managerPrivate, QNetworkAccessManagerPrivate::networkCache, QNetworkReplyPrivate::request, and QVariant::toBool().
Referenced by setCachingEnabled().
QNetworkRequest QNetworkReplyHttpImplPrivate::createRedirectRequest | ( | const QNetworkRequest & | originalRequests, |
const QUrl & | url, | ||
int | maxRedirectsRemainig ) |
Definition at line 1207 of file qnetworkreplyhttpimpl.cpp.
References QNetworkReplyPrivate::originalRequest, QNetworkRequest::setMaximumRedirectsAllowed(), QNetworkRequest::setUrl(), and QNetworkReplyPrivate::url.
Referenced by onRedirected().
QNonContiguousByteDevice * QNetworkReplyHttpImplPrivate::createUploadByteDevice | ( | ) |
Definition at line 2090 of file qnetworkreplyhttpimpl.cpp.
References QObject::connect(), QNonContiguousByteDeviceFactory::createShared(), emitReplyUploadProgress(), outgoingData, outgoingDataBuffer, SIGNAL, SLOT, synchronous, and uploadByteDevice.
Referenced by postRequest().
Definition at line 2068 of file qnetworkreplyhttpimpl.cpp.
References QElapsedTimer::elapsed(), emit, QNetworkReplyPrivate::emitAllUploadProgressSignals, QNetworkReplyPrivate::isFinished, QElapsedTimer::isValid(), QNetworkReplyPrivate::progressSignalInterval, QElapsedTimer::restart(), setupTransferTimeout(), QElapsedTimer::start(), and QNetworkReplyPrivate::uploadProgressSignalChoke.
Referenced by createUploadByteDevice().
void QNetworkReplyHttpImplPrivate::error | ( | QNetworkReply::NetworkError | code, |
const QString & | errorString ) |
Definition at line 2162 of file qnetworkreplyhttpimpl.cpp.
References emit, QNetworkReplyPrivate::errorCode, errorMessage(), QNetworkReply::NoError, QNetworkReply::OperationCanceledError, and qWarning.
QNetworkCacheMetaData QNetworkReplyHttpImplPrivate::fetchCacheMetaData | ( | const QNetworkCacheMetaData & | metaData | ) | const |
Definition at line 1731 of file qnetworkreplyhttpimpl.cpp.
References QNetworkHeadersPrivate::attributes, QHttpHeaders::CacheControl, Qt::CaseInsensitive, caseInsensitiveCompare(), QDateTime::currentDateTimeUtc(), QHttpHeaders::Expires, QNetworkHeadersPrivate::fromHttpDate(), QHttpNetworkRequest::Get, QNetworkCacheMetaData::headers(), QNetworkHeadersPrivate::headers(), QNetworkRequest::HttpReasonPhraseAttribute, httpRequest, QNetworkRequest::HttpStatusCodeAttribute, i, QHash< Key, T >::insert(), QtMiscUtils::isAsciiDigit(), QByteArray::isEmpty(), isHopByHop(), QHttpHeaders::LastModified, QHttpHeaders::nameAt(), o, QHttpNetworkRequest::operation(), parseHttpOptionHeader(), QHttpNetworkRequest::Post, qDebug, reasonPhrase, QNetworkCacheMetaData::setAttributes(), QNetworkCacheMetaData::setExpirationDate(), QNetworkCacheMetaData::setHeaders(), QNetworkCacheMetaData::setLastModified(), QNetworkCacheMetaData::setSaveToDisk(), statusCode, and QByteArray::toInt().
Referenced by initCacheSaveDevice(), and replyDownloadMetaData().
void QNetworkReplyHttpImplPrivate::finished | ( | ) |
Definition at line 2116 of file qnetworkreplyhttpimpl.cpp.
References QNetworkReplyPrivate::Aborted, bytesDownloaded, bytesUploaded, completeCacheSave(), QHttpHeaders::ContentLength, decompressHelper, emit, QNetworkReplyPrivate::errorCode, QNetworkReplyPrivate::Finished, QNetworkHeadersPrivate::headers(), isHttpRedirectResponse(), QDecompressHelper::isValid(), QNetworkReply::NoError, outgoingData, outgoingDataBuffer, state, QTimer::stop(), QNetworkHeadersPrivate::toInt(), and transferTimeout.
Referenced by _q_finished(), postRequest(), and replyFinished().
void QNetworkReplyHttpImplPrivate::followRedirect | ( | ) |
Definition at line 1302 of file qnetworkreplyhttpimpl.cpp.
References QDecompressHelper::clear(), QNetworkHeadersPrivate::clearHeaders(), decompressHelper, QObject::disconnect(), QMetaObject::invokeMethod(), managerPrivate, postRequest(), Q_ASSERT, Qt::QueuedConnection, redirectRequest, and QNetworkAccessManagerPrivate::thread.
Referenced by QNetworkReplyHttpImpl::QNetworkReplyHttpImpl(), and onRedirected().
QNetworkAccessManager::Operation QNetworkReplyHttpImplPrivate::getRedirectOperation | ( | QNetworkAccessManager::Operation | currentOp, |
int | httpStatus ) |
Definition at line 1182 of file qnetworkreplyhttpimpl.cpp.
References QNetworkAccessManager::GetOperation, and QNetworkAccessManager::HeadOperation.
Referenced by onRedirected().
void QNetworkReplyHttpImplPrivate::httpAuthenticationRequired | ( | const QHttpNetworkRequest & | request, |
QAuthenticator * | auth ) |
Definition at line 1504 of file qnetworkreplyhttpimpl.cpp.
References QNetworkAccessManagerPrivate::authenticationRequired(), managerPrivate, QNetworkReplyPrivate::request, synchronous, QNetworkReplyPrivate::url, and urlForLastAuthentication.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::httpError | ( | QNetworkReply::NetworkError | error, |
const QString & | errorString ) |
Definition at line 1518 of file qnetworkreplyhttpimpl.cpp.
References error, QNetworkReplyPrivate::errorCode, QIODevicePrivate::errorString, and qDebug.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::initCacheSaveDevice | ( | ) |
Definition at line 1015 of file qnetworkreplyhttpimpl.cpp.
References _q_cacheSaveDeviceAboutToClose(), QNetworkCacheMetaData::attributes(), QNetworkHeadersPrivate::attributes, cacheEnabled, cacheSaveDevice, fetchCacheMetaData(), QNetworkRequest::HttpStatusCodeAttribute, QHash< Key, T >::insert(), QIODevice::isOpen(), managerPrivate, QNetworkAccessManagerPrivate::networkCache, QAbstractNetworkCache::prepare(), Q_UNLIKELY, qCritical, QNetworkRequest::RedirectionTargetAttribute, QAbstractNetworkCache::remove(), QNetworkCacheMetaData::setAttributes(), QNetworkCacheMetaData::setUrl(), SIGNAL, SLOT, and QNetworkReplyPrivate::url.
Referenced by replyDownloadData(), and replyDownloadProgressSlot().
void QNetworkReplyHttpImplPrivate::invalidateCache | ( | ) |
Definition at line 1008 of file qnetworkreplyhttpimpl.cpp.
References httpRequest, managerPrivate, QNetworkAccessManagerPrivate::networkCache, QAbstractNetworkCache::remove(), and QHttpNetworkRequest::url().
Referenced by postRequest().
bool QNetworkReplyHttpImplPrivate::isCachingAllowed | ( | ) | const |
Definition at line 2245 of file qnetworkreplyhttpimpl.cpp.
References QNetworkAccessManager::GetOperation, QNetworkAccessManager::HeadOperation, and QNetworkReplyPrivate::operation.
Referenced by replyDownloadData(), and replyDownloadProgressSlot().
bool QNetworkReplyHttpImplPrivate::isCachingEnabled | ( | ) | const |
Definition at line 2214 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, managerPrivate, and QNetworkAccessManagerPrivate::networkCache.
Referenced by replyDownloadMetaData().
bool QNetworkReplyHttpImplPrivate::isHttpRedirectResponse | ( | ) | const |
Definition at line 1202 of file qnetworkreplyhttpimpl.cpp.
References httpRequest, QHttpNetworkRequest::isFollowRedirects(), QHttpNetworkReply::isHttpRedirect(), and statusCode.
Referenced by _q_cacheLoadReadyRead(), finished(), replyDownloadData(), replyDownloadMetaData(), replyDownloadProgressSlot(), and sendCacheContents().
bool QNetworkReplyHttpImplPrivate::loadFromCacheIfAllowed | ( | QHttpNetworkRequest & | httpRequest | ) |
Definition at line 480 of file qnetworkreplyhttpimpl.cpp.
References QDateTime::addSecs(), QHttpHeaders::Age, QNetworkRequest::AlwaysNetwork, QNetworkRequest::attribute(), QHttpHeaders::CacheControl, cacheControlName(), QNetworkRequest::CacheLoadControlAttribute, QHttpHeaders::ContentLength, QDateTime::currentDateTimeUtc(), QHttpHeaders::Date, QDateTime::daysTo(), QHttpHeaders::ETag, QNetworkCacheMetaData::expirationDate(), QNetworkHeadersPrivate::fromHttpDate(), QHttpNetworkRequest::headerField(), QNetworkCacheMetaData::headers(), QNetworkRequest::headers(), httpRequest, QByteArray::isEmpty(), QDateTime::isValid(), QNetworkCacheMetaData::isValid(), QNetworkCacheMetaData::lastModified(), managerPrivate, QNetworkAccessManagerPrivate::networkCache, now, parseHttpOptionHeader(), QNetworkRequest::PreferNetwork, qDebug, qMax(), QHttpHeaders::Range, QNetworkReplyPrivate::request, QNetworkCacheMetaData::saveToDisk(), QDateTime::secsTo(), sendCacheContents(), QHttpNetworkRequest::setHeaderField(), QNetworkHeadersPrivate::toHttpDate(), QVariant::toInt(), QNetworkHeadersPrivate::toInt(), QDateTime::toSecsSinceEpoch(), and QHttpNetworkRequest::url().
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::onRedirected | ( | const QUrl & | redirectUrl, |
int | httpStatus, | ||
int | maxRedirectsRemainig ) |
Definition at line 1218 of file qnetworkreplyhttpimpl.cpp.
References _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), QHttpNetworkRequest::clearHeaders(), QHttpHeaders::ContentLength, QHttpHeaders::ContentType, QHttpHeaders::Cookie, QNetworkAccessManager::cookieJar(), createRedirectRequest(), QObject::disconnect(), emit, error, followRedirect(), QNetworkHeadersPrivate::fromCookieList(), QNetworkAccessManager::GetOperation, getRedirectOperation(), QNetworkRequest::headers(), QNetworkAccessManager::HeadOperation, httpRequest, QNetworkReply::InsecureRedirectError, QNetworkReplyPrivate::isFinished, QHttpNetworkRequest::isFollowRedirects(), QHstsCache::isKnownHost(), manager, managerPrivate, QNetworkRequest::NoLessSafeRedirectPolicy, QNetworkReplyPrivate::operation, QNetworkReplyPrivate::originalRequest, outgoingData, outgoingDataBuffer, QUrl::port(), Q_ASSERT, QHttpNetworkRequest::redirectPolicy(), redirectRequest, QIODevice::reset(), QUrl::scheme(), QNetworkRequest::setHeaders(), QUrl::setPort(), QUrl::setScheme(), SIGNAL, SLOT, QNetworkAccessManagerPrivate::stsCache, QNetworkAccessManagerPrivate::stsEnabled, QCoreApplication::translate(), uploadByteDevice, uploadByteDevicePosition, QNetworkReplyPrivate::url, and QNetworkRequest::UserVerifiedRedirectPolicy.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::postRequest | ( | const QNetworkRequest & | newHttpRequest | ) |
Definition at line 628 of file qnetworkreplyhttpimpl.cpp.
References QNetworkRequest::attribute(), QHttpThreadDelegate::authenticationManager, QNetworkAccessManagerPrivate::authenticationManager, QNetworkRequest::AuthenticationReuseAttribute, QNetworkRequest::Automatic, Qt::BlockingQueuedConnection, bytesEqualPrefix(), QHttpThreadDelegate::cacheProxy, QNetworkProxy::CachingCapability, QObject::connect(), QObjectPrivate::connect(), QHttpThreadDelegate::connectionCacheExpiryTimeoutSeconds, QNetworkRequest::ConnectionCacheExpiryTimeoutSecondsAttribute, QNetworkRequest::ConnectionEncryptedAttribute, convert(), QNetworkAccessManagerPrivate::createThread(), createUploadByteDevice(), QHttpNetworkRequest::Custom, QNetworkAccessManager::CustomOperation, QNetworkRequest::CustomVerbAttribute, QNetworkProxy::DefaultProxy, QHttpNetworkRequest::Delete, QNetworkAccessManager::DeleteOperation, QObject::destroyed(), Qt::DirectConnection, QObject::disconnect(), QHttpThreadDelegate::downloadBufferMaximumSize, QHttpThreadDelegate::downloadMetaData(), QNetworkReplyPrivate::downloadProgressSignalChoke, emit, QNetworkReplyPrivate::emitAllUploadProgressSignals, QNetworkRequest::EmitAllUploadProgressSignalsAttribute, error, finished(), QHttpNetworkRequest::Get, QNetworkAccessManager::GetOperation, QHttpNetworkRequest::Head, QNetworkAccessManager::HeadOperation, QHttpThreadDelegate::http1Parameters, QNetworkRequest::Http2AllowedAttribute, QNetworkRequest::Http2CleartextAllowedAttribute, QNetworkRequest::Http2DirectAttribute, QHttpThreadDelegate::http2Parameters, httpAuthenticationRequired(), QNetworkProxy::HttpCachingProxy, httpError(), QNetworkRequest::HttpPipeliningAllowedAttribute, QNetworkProxy::HttpProxy, QHttpThreadDelegate::httpRequest, httpRequest, i, QHttpThreadDelegate::incomingContentLength, QHttpThreadDelegate::incomingErrorCode, QHttpThreadDelegate::incomingErrorDetail, QHttpThreadDelegate::incomingHeaders, QHttpThreadDelegate::incomingReasonPhrase, QHttpThreadDelegate::incomingSslConfiguration, QHttpThreadDelegate::incomingStatusCode, QElapsedTimer::invalidate(), invalidateCache(), QMetaObject::invokeMethod(), QHttpThreadDelegate::isCompressed, QThread::isFinished(), QHttpThreadDelegate::isHttp2Used, QHttpThreadDelegate::isPipeliningUsed, QVariant::isValid(), loadFromCacheIfAllowed(), loadingFromCache, managerPrivate, QNetworkRequest::Manual, QNetworkRequest::MaximumDownloadBufferSizeAttribute, QByteArrayView::mid(), QObject::moveToThread(), QNetworkReply::NoError, QNetworkRequest::NoLessSafeRedirectPolicy, QNetworkProxy::NoProxy, QByteArray::number(), onRedirected(), QNetworkReplyPrivate::operation, outgoingData, QHttpThreadDelegate::pendingDownloadData, pendingDownloadDataEmissions, QHttpThreadDelegate::pendingDownloadProgress, pendingDownloadProgressEmissions, QHttpNetworkRequest::Post, QNetworkAccessManager::PostOperation, proxyAuthenticationRequired(), QNetworkReply::ProxyNotFoundError, QHttpNetworkRequest::Put, QNetworkAccessManager::PutOperation, Q_ARG, QByteArray(), qEnvironmentVariableIsSet(), QStringLiteral, QNetworkAccessManagerPrivate::queryProxy(), Qt::QueuedConnection, QThread::quit(), QHttpHeaders::Range, rangeName(), QNetworkRequest::RedirectPolicyAttribute, QHttpThreadDelegate::removedContentLength, replyDownloadData(), replyDownloadMetaData(), replyDownloadProgressSlot(), replyEncrypted(), replyFinished(), replyPreSharedKeyAuthenticationRequiredSlot(), replySslConfigurationChanged(), replySslErrors(), QNetworkReplyPrivate::request, QHttpThreadDelegate::requestSent(), QNetworkReply::requestSent(), QScopedPointer< T, Cleanup >::reset(), resetUploadDataSlot(), resumeOffset, QUrl::scheme(), sentUploadDataSlot(), QHttpNetworkRequest::setCustomVerb(), QHttpNetworkRequest::setH2cAllowed(), QHttpNetworkRequest::setHeaderField(), QHttpNetworkRequest::setHTTP2Allowed(), QHttpNetworkRequest::setHTTP2Direct(), QObject::setObjectName(), QHttpNetworkRequest::setOperation(), QHttpNetworkRequest::setPeerVerifyName(), QHttpNetworkRequest::setPipeliningAllowed(), QHttpNetworkRequest::setPreConnect(), QHttpNetworkRequest::setPriority(), QHttpNetworkRequest::setRedirectCount(), QHttpNetworkRequest::setRedirectPolicy(), QHttpNetworkRequest::setSsl(), QHttpNetworkRequest::setUploadByteDevice(), QHttpNetworkRequest::setUrl(), QHttpNetworkRequest::setWithCredentials(), SIGNAL, SLOT, QHttpThreadDelegate::socketStartedConnecting(), QNetworkReply::socketStartedConnecting(), QHttpThreadDelegate::ssl, QElapsedTimer::start(), QThread::start(), QHttpThreadDelegate::synchronous, synchronous, QHttpThreadDelegate::synchronousDownloadData, QVariant::toBool(), QVariant::toInt(), QHttpThreadDelegate::transparentProxy, QNetworkProxy::type(), uploadByteDevice, uploadByteDeviceReadyReadSlot(), QNetworkReplyPrivate::uploadProgressSignalChoke, QUrl::url(), QNetworkReplyPrivate::url, QHttpHeaders::value(), QThread::wait(), and wantUploadDataSlot().
Referenced by _q_startOperation(), and followRedirect().
void QNetworkReplyHttpImplPrivate::proxyAuthenticationRequired | ( | const QNetworkProxy & | proxy, |
QAuthenticator * | auth ) |
Definition at line 1511 of file qnetworkreplyhttpimpl.cpp.
References lastProxyAuthentication, managerPrivate, proxy, QNetworkAccessManagerPrivate::proxyAuthenticationRequired(), QNetworkReplyPrivate::request, synchronous, and QNetworkRequest::url().
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyDownloadData | ( | QByteArray | d | ) |
Definition at line 1056 of file qnetworkreplyhttpimpl.cpp.
References arg, bytesBuffered, bytesDownloaded, cacheEnabled, cacheSaveDevice, QDecompressHelper::clear(), QHttpHeaders::ContentLength, d, decompressHelper, QNetworkReplyPrivate::downloadProgressSignalChoke, QElapsedTimer::elapsed(), emit, error, QDecompressHelper::errorString(), QDecompressHelper::feed(), QDecompressHelper::hasData(), QNetworkHeadersPrivate::headers(), initCacheSaveDevice(), isCachingAllowed(), QDecompressHelper::isCountingBytes(), isHttpRedirectResponse(), QDecompressHelper::isValid(), lastReadyReadEmittedSize, pendingDownloadDataEmissions, QNetworkReplyPrivate::progressSignalInterval, QByteArray(), QDecompressHelper::read(), QNetworkReplyPrivate::readBufferMaxSize, QElapsedTimer::restart(), setupTransferTimeout(), synchronous, QNetworkHeadersPrivate::toInt(), QCoreApplication::translate(), QDecompressHelper::uncompressedSize(), QNetworkReply::UnknownContentError, and QIODevice::write().
Referenced by postRequest().
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 1339 of file qnetworkreplyhttpimpl.cpp.
References _q_metaDataChanged(), QHttpHeaders::AcceptEncoding, arg, QHttpHeaders::CacheControl, Qt::CaseInsensitive, checkForRedirect(), QHttpHeaders::contains(), QSharedPointer< T >::data(), db, decompressHelper, QNetworkRequest::DownloadBufferAttribute, downloadBufferCurrentSize, downloadBufferPointer, downloadZerocopyBuffer, error, QDecompressHelper::errorString(), fetchCacheMetaData(), QVariant::fromValue(), QNetworkCacheMetaData::headers(), QNetworkRequest::headers(), QNetworkRequest::Http2WasUsedAttribute, QNetworkRequest::HttpPipeliningWasUsedAttribute, QNetworkRequest::HttpReasonPhraseAttribute, httpRequest, QNetworkRequest::HttpStatusCodeAttribute, i, isCachingEnabled(), isHttpRedirectResponse(), QDecompressHelper::isValid(), locationHeader(), managerPrivate, QNetworkAccessManagerPrivate::networkCache, QNetworkRequest::OriginalContentLengthAttribute, parseHttpOptionHeader(), Q_UNUSED, qDebug, reasonPhrase, QNetworkReplyPrivate::request, QUrl::scheme(), sendCacheContents(), setCachingEnabled(), QDecompressHelper::setCountingBytesEnabled(), QDecompressHelper::setDecompressedSafetyCheckThreshold(), QDecompressHelper::setEncoding(), statusCode, QNetworkAccessManagerPrivate::stsCache, QNetworkAccessManagerPrivate::stsEnabled, synchronous, QCoreApplication::translate(), QNetworkReply::UnknownContentError, QHstsCache::updateFromHeaders(), QNetworkRequest::url(), QHttpNetworkRequest::url(), QNetworkReplyPrivate::url, and QHttpHeaders::value().
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyDownloadProgressSlot | ( | qint64 | bytesReceived, |
qint64 | bytesTotal ) |
Definition at line 1456 of file qnetworkreplyhttpimpl.cpp.
References bytesDownloaded, cacheEnabled, cacheSaveDevice, downloadBufferCurrentSize, QNetworkReplyPrivate::downloadProgressSignalChoke, downloadZerocopyBuffer, QElapsedTimer::elapsed(), emit, initCacheSaveDevice(), isCachingAllowed(), isHttpRedirectResponse(), pendingDownloadProgressEmissions, QNetworkReplyPrivate::progressSignalInterval, QElapsedTimer::restart(), setupTransferTimeout(), and QIODevice::write().
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyEncrypted | ( | ) |
Definition at line 1530 of file qnetworkreplyhttpimpl.cpp.
References emit.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyFinished | ( | ) |
Definition at line 1172 of file qnetworkreplyhttpimpl.cpp.
References finished(), and loadingFromCache.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyPreSharedKeyAuthenticationRequiredSlot | ( | QSslPreSharedKeyAuthenticator * | authenticator | ) |
Definition at line 1557 of file qnetworkreplyhttpimpl.cpp.
References emit.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replySslConfigurationChanged | ( | const QSslConfiguration & | newSslConfiguration | ) |
Definition at line 1548 of file qnetworkreplyhttpimpl.cpp.
References QScopedPointer< T, Cleanup >::data(), QScopedPointer< T, Cleanup >::reset(), and sslConfiguration.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replySslErrors | ( | const QList< QSslError > & | list, |
bool * | ignoreAll, | ||
QList< QSslError > * | toBeIgnored ) |
Definition at line 1536 of file qnetworkreplyhttpimpl.cpp.
References emit, ignoreAll, QList< T >::isEmpty(), list, pendingIgnoreAllSslErrors, and pendingIgnoreSslErrorsList.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::resetUploadDataSlot | ( | bool * | r | ) |
Definition at line 1565 of file qnetworkreplyhttpimpl.cpp.
References uploadByteDevice, and uploadByteDevicePosition.
Referenced by postRequest().
bool QNetworkReplyHttpImplPrivate::sendCacheContents | ( | const QNetworkCacheMetaData & | metaData | ) |
Definition at line 1632 of file qnetworkreplyhttpimpl.cpp.
References _q_cacheLoadReadyRead(), QNetworkCacheMetaData::attributes(), QNetworkHeadersPrivate::attributes, cacheLoadDevice, Qt::CaseInsensitive, checkForRedirect(), contents, QUrl::fromEncoded(), QNetworkCacheMetaData::headers(), QNetworkHeadersPrivate::headers(), QNetworkRequest::HttpReasonPhraseAttribute, httpRequest, QNetworkRequest::HttpStatusCodeAttribute, i, QMetaObject::invokeMethod(), QHttpNetworkRequest::isFollowRedirects(), QHttpNetworkReply::isHttpRedirect(), isHttpRedirectResponse(), QNetworkCacheMetaData::isValid(), loadingFromCache, locationHeader(), managerPrivate, QNetworkAccessManagerPrivate::networkCache, Q_ARG, Q_ASSERT, qDebug, Qt::QueuedConnection, QHttpNetworkRequest::redirectCount(), setCachingEnabled(), QNetworkHeadersPrivate::setHeaders(), SIGNAL, SLOT, QNetworkRequest::SourceIsFromCacheAttribute, statusCode, QVariant::toInt(), QNetworkReplyPrivate::url, and QHash< Key, T >::value().
Referenced by loadFromCacheIfAllowed(), and replyDownloadMetaData().
Definition at line 1575 of file qnetworkreplyhttpimpl.cpp.
References error, QIODevicePrivate::pos, QNetworkReply::UnknownNetworkError, uploadByteDevice, and uploadByteDevicePosition.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::setCachingEnabled | ( | bool | enable | ) |
Definition at line 2219 of file qnetworkreplyhttpimpl.cpp.
References bytesDownloaded, cacheEnabled, cacheSaveDevice, createCache(), managerPrivate, QNetworkAccessManagerPrivate::networkCache, Q_UNLIKELY, qCritical, qDebug, QAbstractNetworkCache::remove(), and QNetworkReplyPrivate::url.
Referenced by replyDownloadMetaData(), and sendCacheContents().
Definition at line 1889 of file qnetworkreplyhttpimpl.cpp.
References resumeOffset.
void QNetworkReplyHttpImplPrivate::setupTransferTimeout | ( | ) |
Definition at line 2047 of file qnetworkreplyhttpimpl.cpp.
References _q_transferTimedOut(), QObject::connect(), QMetaObject::invokeMethod(), Qt::QueuedConnection, QNetworkReplyPrivate::request, QTimer::setInterval(), QTimer::setSingleShot(), SIGNAL, SLOT, QTimer::stop(), and transferTimeout.
Referenced by _q_startOperation(), emitReplyUploadProgress(), replyDownloadData(), and replyDownloadProgressSlot().
void QNetworkReplyHttpImplPrivate::uploadByteDeviceReadyReadSlot | ( | ) |
Definition at line 1617 of file qnetworkreplyhttpimpl.cpp.
References uploadDeviceChoking, and wantUploadDataSlot().
Referenced by postRequest().
Definition at line 1590 of file qnetworkreplyhttpimpl.cpp.
References emit, uploadByteDevice, uploadByteDevicePosition, and uploadDeviceChoking.
Referenced by postRequest(), and uploadByteDeviceReadyReadSlot().
qint64 QNetworkReplyHttpImplPrivate::bytesBuffered |
Definition at line 202 of file qnetworkreplyhttpimpl_p.h.
Referenced by _q_bufferOutgoingData(), and replyDownloadData().
qint64 QNetworkReplyHttpImplPrivate::bytesDownloaded |
Definition at line 201 of file qnetworkreplyhttpimpl_p.h.
Referenced by _q_cacheLoadReadyRead(), finished(), replyDownloadData(), replyDownloadProgressSlot(), and setCachingEnabled().
qint64 QNetworkReplyHttpImplPrivate::bytesUploaded |
Definition at line 174 of file qnetworkreplyhttpimpl_p.h.
Referenced by finished().
bool QNetworkReplyHttpImplPrivate::cacheEnabled |
Definition at line 188 of file qnetworkreplyhttpimpl_p.h.
Referenced by completeCacheSave(), createCache(), initCacheSaveDevice(), isCachingEnabled(), replyDownloadData(), replyDownloadProgressSlot(), and setCachingEnabled().
QIODevice* QNetworkReplyHttpImplPrivate::cacheLoadDevice |
Definition at line 184 of file qnetworkreplyhttpimpl_p.h.
Referenced by _q_cacheLoadReadyRead(), and sendCacheContents().
QIODevice* QNetworkReplyHttpImplPrivate::cacheSaveDevice |
Definition at line 187 of file qnetworkreplyhttpimpl_p.h.
Referenced by _q_cacheSaveDeviceAboutToClose(), completeCacheSave(), initCacheSaveDevice(), replyDownloadData(), replyDownloadProgressSlot(), and setCachingEnabled().
QDecompressHelper QNetworkReplyHttpImplPrivate::decompressHelper |
Definition at line 230 of file qnetworkreplyhttpimpl_p.h.
Referenced by finished(), followRedirect(), replyDownloadData(), and replyDownloadMetaData().
qint64 QNetworkReplyHttpImplPrivate::downloadBufferCurrentSize |
Definition at line 213 of file qnetworkreplyhttpimpl_p.h.
Referenced by replyDownloadMetaData(), and replyDownloadProgressSlot().
QSharedPointer<char> QNetworkReplyHttpImplPrivate::downloadBufferPointer |
Definition at line 214 of file qnetworkreplyhttpimpl_p.h.
Referenced by replyDownloadMetaData().
qint64 QNetworkReplyHttpImplPrivate::downloadBufferReadPosition |
Definition at line 212 of file qnetworkreplyhttpimpl_p.h.
char* QNetworkReplyHttpImplPrivate::downloadZerocopyBuffer |
Definition at line 215 of file qnetworkreplyhttpimpl_p.h.
Referenced by canResume(), replyDownloadMetaData(), and replyDownloadProgressSlot().
QHttpNetworkRequest QNetworkReplyHttpImplPrivate::httpRequest |
Definition at line 155 of file qnetworkreplyhttpimpl_p.h.
Referenced by fetchCacheMetaData(), invalidateCache(), isHttpRedirectResponse(), loadFromCacheIfAllowed(), onRedirected(), postRequest(), replyDownloadMetaData(), and sendCacheContents().
QNetworkProxy QNetworkReplyHttpImplPrivate::lastProxyAuthentication |
Definition at line 193 of file qnetworkreplyhttpimpl_p.h.
Referenced by proxyAuthenticationRequired().
qint64 QNetworkReplyHttpImplPrivate::lastReadyReadEmittedSize = 0 |
Definition at line 206 of file qnetworkreplyhttpimpl_p.h.
Referenced by replyDownloadData().
bool QNetworkReplyHttpImplPrivate::loadingFromCache |
Definition at line 185 of file qnetworkreplyhttpimpl_p.h.
Referenced by postRequest(), replyFinished(), and sendCacheContents().
QNetworkAccessManager* QNetworkReplyHttpImplPrivate::manager |
Definition at line 153 of file qnetworkreplyhttpimpl_p.h.
Referenced by _q_metaDataChanged(), and onRedirected().
QNetworkAccessManagerPrivate* QNetworkReplyHttpImplPrivate::managerPrivate |
Definition at line 154 of file qnetworkreplyhttpimpl_p.h.
Referenced by completeCacheSave(), createCache(), followRedirect(), httpAuthenticationRequired(), initCacheSaveDevice(), invalidateCache(), isCachingEnabled(), loadFromCacheIfAllowed(), onRedirected(), postRequest(), proxyAuthenticationRequired(), replyDownloadMetaData(), sendCacheContents(), and setCachingEnabled().
QIODevice* QNetworkReplyHttpImplPrivate::outgoingData |
Definition at line 169 of file qnetworkreplyhttpimpl_p.h.
Referenced by _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), createUploadByteDevice(), finished(), onRedirected(), and postRequest().
std::shared_ptr<QRingBuffer> QNetworkReplyHttpImplPrivate::outgoingDataBuffer |
Definition at line 170 of file qnetworkreplyhttpimpl_p.h.
Referenced by _q_bufferOutgoingData(), createUploadByteDevice(), finished(), and onRedirected().
std::shared_ptr<QAtomicInt> QNetworkReplyHttpImplPrivate::pendingDownloadDataEmissions |
Definition at line 218 of file qnetworkreplyhttpimpl_p.h.
Referenced by postRequest(), and replyDownloadData().
std::shared_ptr<QAtomicInt> QNetworkReplyHttpImplPrivate::pendingDownloadProgressEmissions |
Definition at line 219 of file qnetworkreplyhttpimpl_p.h.
Referenced by postRequest(), and replyDownloadProgressSlot().
bool QNetworkReplyHttpImplPrivate::pendingIgnoreAllSslErrors |
Definition at line 224 of file qnetworkreplyhttpimpl_p.h.
Referenced by replySslErrors().
Definition at line 225 of file qnetworkreplyhttpimpl_p.h.
Referenced by replySslErrors().
QString QNetworkReplyHttpImplPrivate::reasonPhrase |
Definition at line 162 of file qnetworkreplyhttpimpl_p.h.
Referenced by fetchCacheMetaData(), and replyDownloadMetaData().
QNetworkRequest QNetworkReplyHttpImplPrivate::redirectRequest |
Definition at line 228 of file qnetworkreplyhttpimpl_p.h.
Referenced by followRedirect(), and onRedirected().
quint64 QNetworkReplyHttpImplPrivate::resumeOffset |
Definition at line 199 of file qnetworkreplyhttpimpl_p.h.
Referenced by postRequest(), and setResumeOffset().
QScopedPointer<QSslConfiguration> QNetworkReplyHttpImplPrivate::sslConfiguration |
Definition at line 223 of file qnetworkreplyhttpimpl_p.h.
Referenced by replySslConfigurationChanged().
State QNetworkReplyHttpImplPrivate::state |
Definition at line 158 of file qnetworkreplyhttpimpl_p.h.
Referenced by _q_bufferOutgoingDataFinished(), _q_cacheLoadReadyRead(), _q_startOperation(), and finished().
int QNetworkReplyHttpImplPrivate::statusCode |
Definition at line 161 of file qnetworkreplyhttpimpl_p.h.
Referenced by checkForRedirect(), fetchCacheMetaData(), isHttpRedirectResponse(), replyDownloadMetaData(), and sendCacheContents().
bool QNetworkReplyHttpImplPrivate::synchronous |
Definition at line 156 of file qnetworkreplyhttpimpl_p.h.
Referenced by _q_startOperation(), createUploadByteDevice(), httpAuthenticationRequired(), postRequest(), proxyAuthenticationRequired(), replyDownloadData(), and replyDownloadMetaData().
QTimer* QNetworkReplyHttpImplPrivate::transferTimeout |
Definition at line 208 of file qnetworkreplyhttpimpl_p.h.
Referenced by finished(), and setupTransferTimeout().
std::shared_ptr<QNonContiguousByteDevice> QNetworkReplyHttpImplPrivate::uploadByteDevice |
Definition at line 166 of file qnetworkreplyhttpimpl_p.h.
Referenced by createUploadByteDevice(), onRedirected(), postRequest(), resetUploadDataSlot(), sentUploadDataSlot(), and wantUploadDataSlot().
qint64 QNetworkReplyHttpImplPrivate::uploadByteDevicePosition |
Definition at line 167 of file qnetworkreplyhttpimpl_p.h.
Referenced by onRedirected(), resetUploadDataSlot(), sentUploadDataSlot(), and wantUploadDataSlot().
bool QNetworkReplyHttpImplPrivate::uploadDeviceChoking |
Definition at line 168 of file qnetworkreplyhttpimpl_p.h.
Referenced by uploadByteDeviceReadyReadSlot(), and wantUploadDataSlot().
QUrl QNetworkReplyHttpImplPrivate::urlForLastAuthentication |
Definition at line 191 of file qnetworkreplyhttpimpl_p.h.
Referenced by httpAuthenticationRequired().