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 (const QByteArray &value) |
static QByteArray | toHttpDate (const QDateTime &dt) |
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 |
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 436 of file qnetworkreplyhttpimpl.cpp.
QNetworkReplyHttpImplPrivate::~QNetworkReplyHttpImplPrivate | ( | ) |
Definition at line 467 of file qnetworkreplyhttpimpl.cpp.
void QNetworkReplyHttpImplPrivate::_q_bufferOutgoingData | ( | ) |
Definition at line 1995 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 1971 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 1908 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 1988 of file qnetworkreplyhttpimpl.cpp.
References cacheSaveDevice.
Referenced by initCacheSaveDevice().
void QNetworkReplyHttpImplPrivate::_q_error | ( | QNetworkReply::NetworkError | code, |
const QString & | errorString ) |
Definition at line 2151 of file qnetworkreplyhttpimpl.cpp.
References error, and errorMessage().
void QNetworkReplyHttpImplPrivate::_q_finished | ( | ) |
Definition at line 2107 of file qnetworkreplyhttpimpl.cpp.
References finished().
void QNetworkReplyHttpImplPrivate::_q_metaDataChanged | ( | ) |
Definition at line 2177 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 1890 of file qnetworkreplyhttpimpl.cpp.
References QNetworkReplyPrivate::Finished, postRequest(), QNetworkReplyPrivate::request, setupTransferTimeout(), state, synchronous, and QNetworkReplyPrivate::Working.
void QNetworkReplyHttpImplPrivate::_q_transferTimedOut | ( | ) |
Definition at line 2038 of file qnetworkreplyhttpimpl.cpp.
Referenced by setupTransferTimeout().
bool QNetworkReplyHttpImplPrivate::canResume | ( | ) | const |
Definition at line 1857 of file qnetworkreplyhttpimpl.cpp.
References bytesEqualPrefix(), downloadZerocopyBuffer, QNetworkAccessManager::GetOperation, QNetworkRequest::hasRawHeader(), QNetworkReplyPrivate::operation, rangeName(), QNetworkRequest::rawHeader(), and QNetworkReplyPrivate::request.
void QNetworkReplyHttpImplPrivate::checkForRedirect | ( | const int | statusCode | ) |
Definition at line 1308 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 2244 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 612 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 2199 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 1202 of file qnetworkreplyhttpimpl.cpp.
References QNetworkReplyPrivate::originalRequest, QNetworkRequest::setMaximumRedirectsAllowed(), QNetworkRequest::setUrl(), and QNetworkReplyPrivate::url.
Referenced by onRedirected().
QNonContiguousByteDevice * QNetworkReplyHttpImplPrivate::createUploadByteDevice | ( | ) |
Definition at line 2087 of file qnetworkreplyhttpimpl.cpp.
References QObject::connect(), QNonContiguousByteDeviceFactory::createShared(), emitReplyUploadProgress(), outgoingData, outgoingDataBuffer, SIGNAL, SLOT, synchronous, and uploadByteDevice.
Referenced by postRequest().
Definition at line 2065 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 2157 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 1727 of file qnetworkreplyhttpimpl.cpp.
References QNetworkHeadersPrivate::attributes, cacheControlName(), Qt::CaseInsensitive, caseInsensitiveCompare(), QSet< T >::constEnd(), QDateTime::currentDateTimeUtc(), QNetworkHeadersPrivate::fromHttpDate(), QHttpNetworkRequest::Get, header(), QNetworkHeadersPrivate::headers(), QNetworkRequest::HttpReasonPhraseAttribute, httpRequest, QNetworkRequest::HttpStatusCodeAttribute, QHash< Key, T >::insert(), QtMiscUtils::isAsciiDigit(), QByteArray::isEmpty(), isHopByHop(), it, o, QHttpNetworkRequest::operation(), parseHttpOptionHeader(), QHttpNetworkRequest::Post, qDebug, QNetworkCacheMetaData::rawHeaders(), reasonPhrase, QNetworkHeadersPrivate::setAllRawHeaders(), QNetworkCacheMetaData::setAttributes(), QNetworkCacheMetaData::setExpirationDate(), QNetworkCacheMetaData::setLastModified(), QNetworkCacheMetaData::setRawHeaders(), QNetworkCacheMetaData::setSaveToDisk(), statusCode, and QByteArray::toInt().
Referenced by initCacheSaveDevice(), and replyDownloadMetaData().
void QNetworkReplyHttpImplPrivate::finished | ( | ) |
Definition at line 2113 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 1290 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 1177 of file qnetworkreplyhttpimpl.cpp.
References QNetworkAccessManager::GetOperation, and QNetworkAccessManager::HeadOperation.
Referenced by onRedirected().
void QNetworkReplyHttpImplPrivate::httpAuthenticationRequired | ( | const QHttpNetworkRequest & | request, |
QAuthenticator * | auth ) |
Definition at line 1505 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 1519 of file qnetworkreplyhttpimpl.cpp.
References error, QNetworkReplyPrivate::errorCode, QIODevicePrivate::errorString, and qDebug.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::initCacheSaveDevice | ( | ) |
Definition at line 1010 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 1003 of file qnetworkreplyhttpimpl.cpp.
References httpRequest, managerPrivate, QNetworkAccessManagerPrivate::networkCache, QAbstractNetworkCache::remove(), and QHttpNetworkRequest::url().
Referenced by postRequest().
bool QNetworkReplyHttpImplPrivate::isCachingAllowed | ( | ) | const |
Definition at line 2239 of file qnetworkreplyhttpimpl.cpp.
References QNetworkAccessManager::GetOperation, QNetworkAccessManager::HeadOperation, and QNetworkReplyPrivate::operation.
Referenced by replyDownloadData(), and replyDownloadProgressSlot().
bool QNetworkReplyHttpImplPrivate::isCachingEnabled | ( | ) | const |
Definition at line 2208 of file qnetworkreplyhttpimpl.cpp.
References cacheEnabled, managerPrivate, and QNetworkAccessManagerPrivate::networkCache.
Referenced by replyDownloadMetaData().
bool QNetworkReplyHttpImplPrivate::isHttpRedirectResponse | ( | ) | const |
Definition at line 1197 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 477 of file qnetworkreplyhttpimpl.cpp.
References QDateTime::addSecs(), QNetworkRequest::AlwaysNetwork, QNetworkRequest::attribute(), cacheControlName(), QNetworkRequest::CacheLoadControlAttribute, QSet< T >::constEnd(), QListSpecialMethodsBase< T >::contains(), QDateTime::currentDateTimeUtc(), QDateTime::daysTo(), QNetworkCacheMetaData::expirationDate(), QNetworkHeadersPrivate::fromHttpDate(), QNetworkRequest::hasRawHeader(), QHttpNetworkRequest::headerField(), httpRequest, QByteArray::isEmpty(), QDateTime::isValid(), QNetworkCacheMetaData::isValid(), it, QNetworkCacheMetaData::lastModified(), managerPrivate, QNetworkAccessManagerPrivate::networkCache, now, parseHttpOptionHeader(), QNetworkRequest::PreferNetwork, qDebug, qMax(), rangeName(), QNetworkRequest::rawHeaderList(), QNetworkCacheMetaData::rawHeaders(), QNetworkReplyPrivate::request, QNetworkCacheMetaData::saveToDisk(), QDateTime::secsTo(), sendCacheContents(), QHttpNetworkRequest::setHeaderField(), 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 1213 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, QIODevice::reset(), 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 625 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, header(), QNetworkHeadersPrivate::headers(), 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, 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(), rangeIndex, rangeName(), QNetworkRequest::RedirectPolicyAttribute, QHttpHeaders::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(), 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, QThread::wait(), and wantUploadDataSlot().
Referenced by _q_startOperation(), and followRedirect().
void QNetworkReplyHttpImplPrivate::proxyAuthenticationRequired | ( | const QNetworkProxy & | proxy, |
QAuthenticator * | auth ) |
Definition at line 1512 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 1051 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, QByteArray(), 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 QHttpHeaders & | hm, |
int | sc, | ||
const QString & | rp, | ||
bool | pu, | ||
QSharedPointer< char > | db, | ||
qint64 | contentLength, | ||
qint64 | removedContentLength, | ||
bool | h2Used, | ||
bool | isCompressed ) |
Definition at line 1328 of file qnetworkreplyhttpimpl.cpp.
References _q_metaDataChanged(), arg, cacheControlName(), checkForRedirect(), QByteArray::clear(), QSet< T >::constEnd(), QSharedPointer< T >::data(), db, decompressHelper, QNetworkRequest::DownloadBufferAttribute, downloadBufferCurrentSize, downloadBufferPointer, downloadZerocopyBuffer, error, QDecompressHelper::errorString(), fetchCacheMetaData(), QVariant::fromValue(), QNetworkRequest::Http2WasUsedAttribute, QNetworkRequest::HttpPipeliningWasUsedAttribute, QNetworkRequest::HttpReasonPhraseAttribute, httpRequest, QNetworkRequest::HttpStatusCodeAttribute, i, isCachingEnabled(), QByteArray::isEmpty(), isHttpRedirectResponse(), QDecompressHelper::isValid(), it, locationHeader(), managerPrivate, QNetworkAccessManagerPrivate::networkCache, QNetworkRequest::OriginalContentLengthAttribute, parseHttpOptionHeader(), Q_UNUSED, qDebug, QNetworkRequest::rawHeader(), QNetworkCacheMetaData::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(), QNetworkRequest::url(), QHttpNetworkRequest::url(), and QNetworkReplyPrivate::url.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyDownloadProgressSlot | ( | qint64 | bytesReceived, |
qint64 | bytesTotal ) |
Definition at line 1457 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 1531 of file qnetworkreplyhttpimpl.cpp.
References emit.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyFinished | ( | ) |
Definition at line 1167 of file qnetworkreplyhttpimpl.cpp.
References finished(), and loadingFromCache.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replyPreSharedKeyAuthenticationRequiredSlot | ( | QSslPreSharedKeyAuthenticator * | authenticator | ) |
Definition at line 1558 of file qnetworkreplyhttpimpl.cpp.
References emit.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::replySslConfigurationChanged | ( | const QSslConfiguration & | newSslConfiguration | ) |
Definition at line 1549 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 1537 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 1566 of file qnetworkreplyhttpimpl.cpp.
References uploadByteDevice, and uploadByteDevicePosition.
Referenced by postRequest().
bool QNetworkReplyHttpImplPrivate::sendCacheContents | ( | const QNetworkCacheMetaData & | metaData | ) |
Definition at line 1633 of file qnetworkreplyhttpimpl.cpp.
References _q_cacheLoadReadyRead(), QNetworkCacheMetaData::attributes(), QNetworkHeadersPrivate::attributes, cacheLoadDevice, Qt::CaseInsensitive, checkForRedirect(), QList< T >::constBegin(), QList< T >::constEnd(), contents, QUrl::fromEncoded(), QNetworkRequest::HttpReasonPhraseAttribute, httpRequest, QNetworkRequest::HttpStatusCodeAttribute, QMetaObject::invokeMethod(), QHttpNetworkRequest::isFollowRedirects(), QHttpNetworkReply::isHttpRedirect(), isHttpRedirectResponse(), QNetworkCacheMetaData::isValid(), it, loadingFromCache, locationHeader(), 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 1576 of file qnetworkreplyhttpimpl.cpp.
References error, QIODevicePrivate::pos, QNetworkReply::UnknownNetworkError, uploadByteDevice, and uploadByteDevicePosition.
Referenced by postRequest().
void QNetworkReplyHttpImplPrivate::setCachingEnabled | ( | bool | enable | ) |
Definition at line 2213 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 1885 of file qnetworkreplyhttpimpl.cpp.
References resumeOffset.
void QNetworkReplyHttpImplPrivate::setupTransferTimeout | ( | ) |
Definition at line 2044 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 1618 of file qnetworkreplyhttpimpl.cpp.
References uploadDeviceChoking, and wantUploadDataSlot().
Referenced by postRequest().
Definition at line 1591 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().