![]() |
Qt 6.x
The Qt SDK
|
#include <qnetworkreplyhttpimpl_p.h>
Static Public Member Functions | |
static QHttpNetworkRequest::Priority | convert (const QNetworkRequest::Priority &prio) |
![]() | |
static void | setManager (QNetworkReply *reply, QNetworkAccessManager *manager) |
![]() | |
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 QDateTime | fromHttpDate (const QByteArray &value) |
static QByteArray | toHttpDate (const QDateTime &dt) |
Additional Inherited Members | |
![]() | |
enum | State { Idle , Buffering , Working , Finished , Aborted } |
![]() | |
enum | AccessMode : quint8 { Unset , Sequential , RandomAccess } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
![]() | |
typedef QPair< QByteArray, QByteArray > | RawHeaderPair |
typedef QList< RawHeaderPair > | RawHeadersList |
typedef QHash< QNetworkRequest::KnownHeaders, QVariant > | CookedHeadersMap |
typedef QHash< QNetworkRequest::Attribute, QVariant > | AttributesMap |
![]() | |
static const int | progressSignalInterval = 100 |
Definition at line 122 of file qnetworkreplyhttpimpl_p.h.
QNetworkReplyHttpImplPrivate::QNetworkReplyHttpImplPrivate | ( | ) |
Definition at line 431 of file qnetworkreplyhttpimpl.cpp.
QNetworkReplyHttpImplPrivate::~QNetworkReplyHttpImplPrivate | ( | ) |
Definition at line 462 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::_q_bufferOutgoingData | ( | ) |
Definition at line 1964 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 1940 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 1877 of file qnetworkreplyhttpimpl.cpp.
References QIODevice::atEnd(), QIODevice::bytesAvailable(), bytesDownloaded, cacheLoadDevice, QNetworkRequest::ContentLengthHeader, QNetworkHeadersPrivate::cookedHeaders, QObject::deleteLater(), QNetworkReplyPrivate::downloadProgressSignalChoke, QElapsedTimer::elapsed(), emit, QMetaObject::invokeMethod(), isHttpRedirectResponse(), QVariant::isNull(), QIODevice::isOpen(), QIODevice::isSequential(), QNetworkReplyPrivate::progressSignalInterval, Q_INT64_C, Qt::QueuedConnection, QIODevice::read(), QIODevice::readAll(), QElapsedTimer::restart(), state, QVariant::toLongLong(), QIODevice::ungetChar(), QHash< Key, T >::value(), and QNetworkReplyPrivate::Working.
Referenced by sendCacheContents().
void QNetworkReplyHttpImplPrivate::_q_cacheSaveDeviceAboutToClose | ( | ) |
Definition at line 1957 of file qnetworkreplyhttpimpl.cpp.
References cacheSaveDevice.
Referenced by initCacheSaveDevice().
void QNetworkReplyHttpImplPrivate::_q_error | ( | QNetworkReply::NetworkError | code, |
const QString & | errorString | ||
) |
Definition at line 2120 of file qnetworkreplyhttpimpl.cpp.
References error, and errorMessage().
void QNetworkReplyHttpImplPrivate::_q_finished | ( | ) |
Definition at line 2076 of file qnetworkreplyhttpimpl.cpp.
References finished().
void QNetworkReplyHttpImplPrivate::_q_metaDataChanged | ( | ) |
Definition at line 2144 of file qnetworkreplyhttpimpl.cpp.
References QNetworkRequest::attribute(), QNetworkRequest::Automatic, QHash< Key, T >::cend(), QHash< Key, T >::constFind(), QNetworkHeadersPrivate::cookedHeaders, QNetworkAccessManager::cookieJar(), QNetworkRequest::CookieSaveControlAttribute, emit, it, manager, Q_ASSERT, QNetworkReplyPrivate::request, QNetworkRequest::SetCookieHeader, QNetworkCookieJar::setCookiesFromUrl(), QVariant::toInt(), and QNetworkReplyPrivate::url.
Referenced by replyDownloadMetaData().
void QNetworkReplyHttpImplPrivate::_q_startOperation | ( | ) |
Definition at line 1861 of file qnetworkreplyhttpimpl.cpp.
References QNetworkReplyPrivate::Finished, postRequest(), QNetworkReplyPrivate::request, setupTransferTimeout(), state, synchronous, and QNetworkReplyPrivate::Working.
void QNetworkReplyHttpImplPrivate::_q_transferTimedOut | ( | ) |
Definition at line 2007 of file qnetworkreplyhttpimpl.cpp.
Referenced by setupTransferTimeout().
bool QNetworkReplyHttpImplPrivate::canResume | ( | ) | const |
Definition at line 1828 of file qnetworkreplyhttpimpl.cpp.
References downloadZerocopyBuffer, QNetworkAccessManager::GetOperation, QNetworkRequest::hasRawHeader(), QNetworkReplyPrivate::operation, QNetworkRequest::rawHeader(), and QNetworkReplyPrivate::request.
void QNetworkReplyHttpImplPrivate::checkForRedirect | ( | const int | statusCode | ) |
Definition at line 1287 of file qnetworkreplyhttpimpl.cpp.
References QString::fromUtf8(), header(), QUrl::isValid(), QNetworkRequest::RedirectionTargetAttribute, statusCode, and QNetworkReplyPrivate::url.
Referenced by replyDownloadMetaData(), and sendCacheContents().
void QNetworkReplyHttpImplPrivate::completeCacheSave | ( | ) |
Definition at line 2211 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 604 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 2166 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 1188 of file qnetworkreplyhttpimpl.cpp.
References QNetworkReplyPrivate::originalRequest, QNetworkRequest::setMaximumRedirectsAllowed(), QNetworkRequest::setUrl(), and QNetworkReplyPrivate::url.
Referenced by onRedirected().
QNonContiguousByteDevice * QNetworkReplyHttpImplPrivate::createUploadByteDevice | ( | ) |
Definition at line 2056 of file qnetworkreplyhttpimpl.cpp.
References QObject::connect(), QNonContiguousByteDeviceFactory::createShared(), emitReplyUploadProgress(), outgoingData, outgoingDataBuffer, SIGNAL, SLOT, synchronous, and uploadByteDevice.
Referenced by postRequest().
Definition at line 2034 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 2126 of file qnetworkreplyhttpimpl.cpp.
References emit, QNetworkReplyPrivate::errorCode, errorMessage(), QNetworkReply::NoError, and qWarning.
QNetworkCacheMetaData QNetworkReplyHttpImplPrivate::fetchCacheMetaData | ( | const QNetworkCacheMetaData & | metaData | ) | const |
Definition at line 1687 of file qnetworkreplyhttpimpl.cpp.
References QDateTime::addSecs(), QNetworkCacheMetaData::attributes(), QNetworkHeadersPrivate::attributes, QList< T >::constEnd(), QHash< Key, T >::contains(), QDateTime::currentDateTimeUtc(), QNetworkHeadersPrivate::findRawHeader(), QNetworkHeadersPrivate::fromHttpDate(), QHttpNetworkRequest::Get, header(), QNetworkRequest::HttpReasonPhraseAttribute, httpRequest, QNetworkRequest::HttpStatusCodeAttribute, QHash< Key, T >::insert(), QtMiscUtils::isAsciiDigit(), QByteArray::isEmpty(), it, o, QHttpNetworkRequest::operation(), parseHttpOptionHeader(), QHttpNetworkRequest::Post, qDebug, QNetworkCacheMetaData::rawHeaders(), QNetworkHeadersPrivate::rawHeaders, reasonPhrase, QNetworkHeadersPrivate::setAllRawHeaders(), QNetworkCacheMetaData::setAttributes(), QNetworkCacheMetaData::setExpirationDate(), QNetworkCacheMetaData::setLastModified(), QNetworkHeadersPrivate::setRawHeader(), QNetworkCacheMetaData::setRawHeaders(), QNetworkCacheMetaData::setSaveToDisk(), statusCode, QByteArray::toInt(), QString::toLower(), and QHash< Key, T >::value().
Referenced by initCacheSaveDevice(), and replyDownloadMetaData().
void QNetworkReplyHttpImplPrivate::finished | ( | ) |
Definition at line 2082 of file qnetworkreplyhttpimpl.cpp.
References QNetworkReplyPrivate::Aborted, bytesDownloaded, bytesUploaded, completeCacheSave(), QNetworkRequest::ContentLengthHeader, QNetworkHeadersPrivate::cookedHeaders, decompressHelper, emit, QNetworkReplyPrivate::errorCode, QNetworkReplyPrivate::Finished, isHttpRedirectResponse(), QVariant::isNull(), QDecompressHelper::isValid(), QNetworkReply::NoError, outgoingData, outgoingDataBuffer, state, QTimer::stop(), QVariant::toLongLong(), transferTimeout, and QHash< Key, T >::value().
Referenced by _q_finished(), postRequest(), and replyFinished().
void QNetworkReplyHttpImplPrivate::followRedirect | ( | ) |
Definition at line 1271 of file qnetworkreplyhttpimpl.cpp.
References QList< T >::clear(), QDecompressHelper::clear(), QHash< Key, T >::clear(), QNetworkHeadersPrivate::cookedHeaders, decompressHelper, QObject::disconnect(), QMetaObject::invokeMethod(), managerPrivate, postRequest(), Q_ASSERT, Qt::QueuedConnection, QNetworkHeadersPrivate::rawHeaders, redirectRequest, and QNetworkAccessManagerPrivate::thread.
Referenced by QNetworkReplyHttpImpl::QNetworkReplyHttpImpl(), and onRedirected().
QNetworkAccessManager::Operation QNetworkReplyHttpImplPrivate::getRedirectOperation | ( | QNetworkAccessManager::Operation | currentOp, |
int | httpStatus | ||
) |
Definition at line 1163 of file qnetworkreplyhttpimpl.cpp.
References QNetworkAccessManager::GetOperation, and QNetworkAccessManager::HeadOperation.
Referenced by onRedirected().
void QNetworkReplyHttpImplPrivate::httpAuthenticationRequired | ( | const QHttpNetworkRequest & | request, |
QAuthenticator * | auth | ||
) |
Definition at line 1486 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 1500 of file qnetworkreplyhttpimpl.cpp.
References error, QNetworkReplyPrivate::errorCode, QIODevicePrivate::errorString, and qDebug.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::initCacheSaveDevice | ( | ) |
Definition at line 996 of file qnetworkreplyhttpimpl.cpp.
References _q_cacheSaveDeviceAboutToClose(), QNetworkCacheMetaData::attributes(), QNetworkHeadersPrivate::attributes, cacheEnabled, cacheSaveDevice, QObject::connect(), fetchCacheMetaData(), QNetworkRequest::HttpStatusCodeAttribute, QHash< Key, T >::insert(), QIODevice::isOpen(), QVariant::isValid(), 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 989 of file qnetworkreplyhttpimpl.cpp.
References httpRequest, managerPrivate, QNetworkAccessManagerPrivate::networkCache, QAbstractNetworkCache::remove(), and QHttpNetworkRequest::url().
Referenced by postRequest().
bool QNetworkReplyHttpImplPrivate::isCachingAllowed | ( | ) | const |
Definition at line 2206 of file qnetworkreplyhttpimpl.cpp.
References QNetworkAccessManager::GetOperation, QNetworkAccessManager::HeadOperation, and QNetworkReplyPrivate::operation.
Referenced by replyDownloadData(), and replyDownloadProgressSlot().
bool QNetworkReplyHttpImplPrivate::isCachingEnabled | ( | ) | const |
Definition at line 2175 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, managerPrivate, and QNetworkAccessManagerPrivate::networkCache.
Referenced by replyDownloadMetaData().
bool QNetworkReplyHttpImplPrivate::isHttpRedirectResponse | ( | ) | const |
Definition at line 1183 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 472 of file qnetworkreplyhttpimpl.cpp.
References QDateTime::addSecs(), QNetworkRequest::AlwaysNetwork, QNetworkRequest::attribute(), QNetworkRequest::CacheLoadControlAttribute, QList< T >::constEnd(), QListSpecialMethodsBase< T >::contains(), QHash< Key, T >::contains(), QDateTime::currentDateTimeUtc(), QAbstractNetworkCache::data(), QDateTime::daysTo(), QNetworkCacheMetaData::expirationDate(), QNetworkHeadersPrivate::findRawHeader(), QNetworkHeadersPrivate::fromHttpDate(), QNetworkRequest::hasRawHeader(), QHttpNetworkRequest::headerField(), httpRequest, QByteArray::isEmpty(), QDateTime::isValid(), QNetworkCacheMetaData::isValid(), it, QNetworkCacheMetaData::lastModified(), managerPrivate, QAbstractNetworkCache::metaData(), QNetworkAccessManagerPrivate::networkCache, now, parseHttpOptionHeader(), QNetworkRequest::PreferNetwork, qDebug, qMax(), QNetworkRequest::rawHeaderList(), QNetworkCacheMetaData::rawHeaders(), QNetworkHeadersPrivate::rawHeaders, QNetworkReplyPrivate::request, QNetworkCacheMetaData::saveToDisk(), QDateTime::secsTo(), sendCacheContents(), QNetworkHeadersPrivate::setAllRawHeaders(), QHttpNetworkRequest::setHeaderField(), QIODevice::size(), QNetworkHeadersPrivate::toHttpDate(), QVariant::toInt(), QDateTime::toSecsSinceEpoch(), and QHttpNetworkRequest::url().
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::onRedirected | ( | const QUrl & | redirectUrl, |
int | httpStatus, | ||
int | maxRedirectsRemainig | ||
) |
Definition at line 1199 of file qnetworkreplyhttpimpl.cpp.
References _q_bufferOutgoingData(), _q_bufferOutgoingDataFinished(), QHttpNetworkRequest::clearHeaders(), QNetworkRequest::ContentLengthHeader, QNetworkRequest::ContentTypeHeader, QNetworkRequest::CookieHeader, QNetworkAccessManager::cookieJar(), createRedirectRequest(), QObject::disconnect(), emit, error, followRedirect(), QVariant::fromValue(), QNetworkAccessManager::GetOperation, getRedirectOperation(), 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, QUrl::scheme(), QNetworkRequest::setHeader(), 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 617 of file qnetworkreplyhttpimpl.cpp.
References QNetworkRequest::attribute(), QHttpThreadDelegate::authenticationManager, QNetworkAccessManagerPrivate::authenticationManager, QNetworkRequest::AuthenticationReuseAttribute, QNetworkRequest::Automatic, Qt::BlockingQueuedConnection, 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, header(), QNetworkAccessManager::HeadOperation, QHttpThreadDelegate::http1Parameters, QNetworkRequest::Http2AllowedAttribute, QNetworkRequest::Http2CleartextAllowedAttribute, QNetworkRequest::Http2DirectAttribute, QHttpThreadDelegate::http2Parameters, httpAuthenticationRequired(), QNetworkProxy::HttpCachingProxy, httpError(), QNetworkRequest::HttpPipeliningAllowedAttribute, QNetworkProxy::HttpProxy, QHttpThreadDelegate::httpRequest, httpRequest, QHttpThreadDelegate::incomingContentLength, QHttpThreadDelegate::incomingErrorCode, QHttpThreadDelegate::incomingErrorDetail, QHttpThreadDelegate::incomingHeaders, QHttpThreadDelegate::incomingReasonPhrase, QHttpThreadDelegate::incomingSslConfiguration, QHttpThreadDelegate::incomingStatusCode, QByteArray::indexOf(), QListSpecialMethodsBase< T >::indexOf(), QElapsedTimer::invalidate(), invalidateCache(), QMetaObject::invokeMethod(), QHttpThreadDelegate::isCompressed, QThread::isFinished(), QHttpThreadDelegate::isHttp2Used, QHttpThreadDelegate::isPipeliningUsed, QVariant::isValid(), QByteArray::left(), loadFromCacheIfAllowed(), loadingFromCache, managerPrivate, QNetworkRequest::Manual, QNetworkRequest::MaximumDownloadBufferSizeAttribute, QNetworkRequest::maximumRedirectsAllowed(), QByteArray::mid(), QObject::moveToThread(), QNetworkReply::NoError, QNetworkRequest::NoLessSafeRedirectPolicy, QNetworkProxy::NoProxy, QByteArray::number(), onRedirected(), QNetworkReplyPrivate::operation, QNetworkRequest::peerVerifyName(), QHttpThreadDelegate::pendingDownloadData, pendingDownloadDataEmissions, QHttpThreadDelegate::pendingDownloadProgress, pendingDownloadProgressEmissions, QHttpNetworkRequest::Post, QNetworkAccessManager::PostOperation, QNetworkRequest::priority(), proxyAuthenticationRequired(), QNetworkReply::ProxyNotFoundError, QHttpNetworkRequest::Put, QNetworkAccessManager::PutOperation, Q_ARG, qEnvironmentVariableIsSet(), QStringLiteral, QNetworkAccessManagerPrivate::queryProxy(), Qt::QueuedConnection, QThread::quit(), rangeIndex, QNetworkRequest::rawHeader(), QNetworkRequest::rawHeaderList(), QNetworkRequest::RedirectPolicyAttribute, QList< T >::removeAt(), 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(), QObject::setParent(), 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, QNetworkRequest::sslConfiguration(), QElapsedTimer::start(), QThread::start(), QHttpThreadDelegate::synchronous, synchronous, QHttpThreadDelegate::synchronousDownloadData, QVariant::toBool(), QVariant::toByteArray(), QVariant::toInt(), QVariant::toLongLong(), QByteArray::toULongLong(), QHttpThreadDelegate::transparentProxy, QNetworkProxy::type(), uploadByteDevice, uploadByteDeviceReadyReadSlot(), QNetworkReplyPrivate::uploadProgressSignalChoke, QNetworkReplyPrivate::url, QNetworkRequest::url(), QThread::wait(), and wantUploadDataSlot().
Referenced by _q_startOperation(), and followRedirect().
void QNetworkReplyHttpImplPrivate::proxyAuthenticationRequired | ( | const QNetworkProxy & | proxy, |
QAuthenticator * | auth | ||
) |
Definition at line 1493 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 1037 of file qnetworkreplyhttpimpl.cpp.
References arg, bytesBuffered, bytesDownloaded, cacheEnabled, cacheSaveDevice, QDecompressHelper::clear(), QNetworkRequest::ContentLengthHeader, QNetworkHeadersPrivate::cookedHeaders, d, decompressHelper, QNetworkReplyPrivate::downloadProgressSignalChoke, QElapsedTimer::elapsed(), emit, error, QDecompressHelper::errorString(), QDecompressHelper::feed(), QDecompressHelper::hasData(), initCacheSaveDevice(), isCachingAllowed(), QDecompressHelper::isCountingBytes(), isHttpRedirectResponse(), QVariant::isNull(), QDecompressHelper::isValid(), lastReadyReadEmittedSize, pendingDownloadDataEmissions, QNetworkReplyPrivate::progressSignalInterval, Q_INT64_C, QDecompressHelper::read(), QNetworkReplyPrivate::readBufferMaxSize, QElapsedTimer::restart(), setupTransferTimeout(), synchronous, QVariant::toLongLong(), QCoreApplication::translate(), QDecompressHelper::uncompressedSize(), QNetworkReply::UnknownContentError, QHash< Key, T >::value(), and QIODevice::write().
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyDownloadMetaData | ( | const QList< QPair< QByteArray, QByteArray > > & | hm, |
int | sc, | ||
const QString & | rp, | ||
bool | pu, | ||
QSharedPointer< char > | db, | ||
qint64 | contentLength, | ||
qint64 | removedContentLength, | ||
bool | h2Used, | ||
bool | isCompressed | ||
) |
Definition at line 1307 of file qnetworkreplyhttpimpl.cpp.
References _q_metaDataChanged(), arg, Qt::CaseInsensitive, checkForRedirect(), QByteArray::clear(), QList< T >::constBegin(), QList< T >::constEnd(), QHash< Key, T >::contains(), QSharedPointer< T >::data(), db, decompressHelper, QNetworkRequest::DownloadBufferAttribute, downloadBufferCurrentSize, downloadBufferPointer, downloadZerocopyBuffer, error, QDecompressHelper::errorString(), fetchCacheMetaData(), QNetworkHeadersPrivate::findRawHeader(), QVariant::fromValue(), QNetworkRequest::Http2WasUsedAttribute, QNetworkRequest::HttpPipeliningWasUsedAttribute, QNetworkRequest::HttpReasonPhraseAttribute, httpRequest, QNetworkRequest::HttpStatusCodeAttribute, isCachingEnabled(), QByteArray::isEmpty(), isHttpRedirectResponse(), QDecompressHelper::isValid(), it, managerPrivate, QAbstractNetworkCache::metaData(), QNetworkAccessManagerPrivate::networkCache, QNetworkRequest::OriginalContentLengthAttribute, parseHttpOptionHeader(), Q_UNUSED, qDebug, QNetworkRequest::rawHeader(), QNetworkCacheMetaData::rawHeaders(), QNetworkHeadersPrivate::rawHeaders, reasonPhrase, QNetworkReplyPrivate::request, QUrl::scheme(), sendCacheContents(), QNetworkHeadersPrivate::setAllRawHeaders(), setCachingEnabled(), QDecompressHelper::setCountingBytesEnabled(), QDecompressHelper::setDecompressedSafetyCheckThreshold(), QDecompressHelper::setEncoding(), statusCode, QNetworkAccessManagerPrivate::stsCache, QNetworkAccessManagerPrivate::stsEnabled, synchronous, QCoreApplication::translate(), QNetworkReply::UnknownContentError, QHstsCache::updateFromHeaders(), QAbstractNetworkCache::updateMetaData(), QNetworkRequest::url(), QHttpNetworkRequest::url(), and QNetworkReplyPrivate::url.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyDownloadProgressSlot | ( | qint64 | bytesReceived, |
qint64 | bytesTotal | ||
) |
Definition at line 1438 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 1512 of file qnetworkreplyhttpimpl.cpp.
References emit.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyFinished | ( | ) |
Definition at line 1153 of file qnetworkreplyhttpimpl.cpp.
References finished(), and loadingFromCache.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyPreSharedKeyAuthenticationRequiredSlot | ( | QSslPreSharedKeyAuthenticator * | authenticator | ) |
Definition at line 1539 of file qnetworkreplyhttpimpl.cpp.
References emit.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replySslConfigurationChanged | ( | const QSslConfiguration & | newSslConfiguration | ) |
Definition at line 1530 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 1518 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 1547 of file qnetworkreplyhttpimpl.cpp.
References uploadByteDevice, and uploadByteDevicePosition.
Referenced by postRequest().
bool QNetworkReplyHttpImplPrivate::sendCacheContents | ( | const QNetworkCacheMetaData & | metaData | ) |
Definition at line 1614 of file qnetworkreplyhttpimpl.cpp.
References _q_cacheLoadReadyRead(), QNetworkCacheMetaData::attributes(), QNetworkHeadersPrivate::attributes, cacheLoadDevice, Qt::CaseInsensitive, checkForRedirect(), QList< T >::constBegin(), QList< T >::constEnd(), contents, QAbstractNetworkCache::data(), QUrl::fromEncoded(), QNetworkRequest::HttpReasonPhraseAttribute, httpRequest, QNetworkRequest::HttpStatusCodeAttribute, QMetaObject::invokeMethod(), QHttpNetworkRequest::isFollowRedirects(), QHttpNetworkReply::isHttpRedirect(), isHttpRedirectResponse(), QNetworkCacheMetaData::isValid(), it, loadingFromCache, managerPrivate, QNetworkAccessManagerPrivate::networkCache, Q_ARG, Q_ASSERT, qDebug, Qt::QueuedConnection, QNetworkCacheMetaData::rawHeaders(), QNetworkHeadersPrivate::rawHeaders, QHttpNetworkRequest::redirectCount(), setCachingEnabled(), QNetworkHeadersPrivate::setRawHeader(), SIGNAL, SLOT, QNetworkRequest::SourceIsFromCacheAttribute, statusCode, QVariant::toInt(), QNetworkReplyPrivate::url, and QHash< Key, T >::value().
Referenced by loadFromCacheIfAllowed(), and replyDownloadMetaData().
Definition at line 1557 of file qnetworkreplyhttpimpl.cpp.
References error, QIODevicePrivate::pos, QNetworkReply::UnknownNetworkError, uploadByteDevice, and uploadByteDevicePosition.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::setCachingEnabled | ( | bool | enable | ) |
Definition at line 2180 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 1856 of file qnetworkreplyhttpimpl.cpp.
References resumeOffset.
void QNetworkReplyHttpImplPrivate::setupTransferTimeout | ( | ) |
Definition at line 2013 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 1599 of file qnetworkreplyhttpimpl.cpp.
References uploadDeviceChoking, and wantUploadDataSlot().
Referenced by postRequest().
Definition at line 1572 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(), and onRedirected().
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().