![]() |
Qt 6.x
The Qt SDK
|
#include <qhttpnetworkconnection_p.h>
Inheritance diagram for QHttpNetworkConnectionPrivate:
Collaboration diagram for QHttpNetworkConnectionPrivate:Classes | |
| struct | ParseRedirectResult |
Public Types | |
| enum | ConnectionState { RunningState = 0 , PausedState = 1 } |
| enum | NetworkLayerPreferenceState { Unknown , HostLookupPending , IPv4 , IPv6 , IPv4or6 } |
| enum | { ChunkSize = 4096 } |
Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Attributes | |
| static const int | defaultHttpChannelCount = 6 |
| static const int | defaultPipelineLength = 3 |
| static const int | defaultRePipelineLength = 2 |
Friends | |
| class | QHttpNetworkConnectionChannel |
Additional Inherited Members | |
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) |
Definition at line 137 of file qhttpnetworkconnection_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ChunkSize | |
Definition at line 170 of file qhttpnetworkconnection_p.h.
| Enumerator | |
|---|---|
| RunningState | |
| PausedState | |
Definition at line 145 of file qhttpnetworkconnection_p.h.
| Enumerator | |
|---|---|
| Unknown | |
| HostLookupPending | |
| IPv4 | |
| IPv6 | |
| IPv4or6 | |
Definition at line 150 of file qhttpnetworkconnection_p.h.
| QHttpNetworkConnectionPrivate::QHttpNetworkConnectionPrivate | ( | const QString & | hostName, |
| quint16 | port, | ||
| bool | encrypt, | ||
| QHttpNetworkConnection::ConnectionType | type | ||
| ) |
Definition at line 45 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channelCount, channels, and Q_ASSERT.
| QHttpNetworkConnectionPrivate::QHttpNetworkConnectionPrivate | ( | quint16 | channelCount, |
| const QString & | hostName, | ||
| quint16 | port, | ||
| bool | encrypt, | ||
| QHttpNetworkConnection::ConnectionType | type | ||
| ) |
Definition at line 68 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channelCount, channels, QHttpNetworkConnection::ConnectionTypeHTTP2, QHttpNetworkConnection::ConnectionTypeHTTP2Direct, and Q_ASSERT.
| QHttpNetworkConnectionPrivate::~QHttpNetworkConnectionPrivate | ( | ) |
Definition at line 93 of file qhttpnetworkconnection.cpp.
References channelCount, channels, QAbstractSocket::close(), QObject::disconnect(), i, socket, and QHttpNetworkConnectionChannel::socket.
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::_q_connectDelayedChannel | ( | ) |
Definition at line 1336 of file qhttpnetworkconnection.cpp.
References channels, delayIpv4, and QHttpNetworkConnectionChannel::ensureConnection().
Referenced by init().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1233 of file qhttpnetworkconnection.cpp.
References QNetworkProxy::capabilities(), channels, connectionType, QHttpNetworkConnection::ConnectionTypeHTTP2, QHttpNetworkConnection::ConnectionTypeHTTP2Direct, delayIpv4, dequeueRequest(), emitReplyError(), QNetworkProxy::HostNameLookupCapability, QNetworkReply::HostNotFoundError, info, QMetaObject::invokeMethod(), IPv4, IPv4or6, QAbstractSocket::IPv4Protocol, IPv6, QAbstractSocket::IPv6Protocol, networkLayerState, networkProxy, QHttpNetworkConnectionChannel::proxy, QNetworkReply::ProxyNotFoundError, Q_ASSERT, qDebug, Qt::QueuedConnection, reply, socket, startNetworkLayerStateLookup(), and Unknown.
Referenced by startHostInfoLookup().
Here is the call graph for this function:
Here is the caller graph for this function:| void QHttpNetworkConnectionPrivate::_q_startNextRequest | ( | ) |
Definition at line 1033 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channel, channels, QHttpNetworkConnectionChannel::ClosingState, QAbstractSocket::ConnectedState, QAbstractSocket::ConnectingState, connectionType, QHttpNetworkConnection::ConnectionTypeHTTP, QHttpNetworkConnection::ConnectionTypeHTTP2, QHttpNetworkConnection::ConnectionTypeHTTP2Direct, QQueue< T >::dequeue(), dequeueRequest(), QQueue< T >::enqueue(), QHttpNetworkConnectionChannel::ensureConnection(), fillPipeline(), highPriorityQueue, HostLookupPending, QAbstractSocket::HostLookupState, i, IPv4, IPv4or6, QAbstractSocket::IPv4Protocol, IPv6, QAbstractSocket::IPv6Protocol, QList< T >::isEmpty(), lowPriorityQueue, QHttpNetworkConnectionChannel::networkLayerPreference, networkLayerState, PausedState, QHttpNetworkConnectionChannel::pendingEncrypt, preConnectRequests, qMax(), QHttpNetworkConnectionChannel::reply, reply, QHttpNetworkConnectionChannel::resendCurrent, QHttpNetworkConnectionChannel::sendRequest(), QList< T >::size(), socket, QHttpNetworkConnectionChannel::socket, state, QAbstractSocket::state(), QAbstractSocket::UnconnectedState, and Unknown.
Referenced by queueRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| void QHttpNetworkConnectionPrivate::copyCredentials | ( | int | fromChannel, |
| QAuthenticator * | auth, | ||
| bool | isProxy | ||
| ) |
Definition at line 370 of file qhttpnetworkconnection.cpp.
References activeChannelCount, QHttpNetworkConnectionChannel::authenticator, channels, QString::compare(), QAuthenticatorPrivate::getPrivate(), i, QAuthenticatorPrivate::Negotiate, QAuthenticatorPrivate::Ntlm, QAuthenticator::password(), priv(), QHttpNetworkConnectionChannel::proxyAuthenticator, Q_ASSERT, QAuthenticator::setPassword(), QAuthenticator::setUser(), and QAuthenticator::user().
Referenced by emitProxyAuthenticationRequired(), and handleAuthenticateChallenge().
Here is the call graph for this function:
Here is the caller graph for this function:| void QHttpNetworkConnectionPrivate::createAuthorization | ( | QAbstractSocket * | socket, |
| QHttpNetworkRequest & | request | ||
| ) |
Definition at line 572 of file qhttpnetworkconnection.cpp.
References channel, channels, QAuthenticatorPrivate::Done, QAuthenticatorPrivate::getPrivate(), QUrl::host(), QNetworkProxy::hostName(), indexOf(), QAuthenticatorPrivate::Negotiate, networkProxy, QAuthenticatorPrivate::None, QAuthenticatorPrivate::Ntlm, priv(), Q_ASSERT, request, socket, and QNetworkRequest::url().
Here is the call graph for this function:| bool QHttpNetworkConnectionPrivate::dequeueRequest | ( | QAbstractSocket * | socket | ) |
Definition at line 708 of file qhttpnetworkconnection.cpp.
References highPriorityQueue, i, indexOf(), QList< T >::isEmpty(), lowPriorityQueue, prepareRequest(), socket, QList< T >::takeLast(), and updateChannel().
Referenced by _q_hostLookupFinished(), and _q_startNextRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| void QHttpNetworkConnectionPrivate::emitProxyAuthenticationRequired | ( | const QHttpNetworkConnectionChannel * | chan, |
| const QNetworkProxy & | proxy, | ||
| QAuthenticator * | auth | ||
| ) |
Definition at line 1571 of file qhttpnetworkconnection.cpp.
References QMultiMap< Key, T >::cbegin(), connectionType, QHttpNetworkConnection::ConnectionTypeHTTP2, QHttpNetworkConnection::ConnectionTypeHTTP2Direct, copyCredentials(), emit, QHttpNetworkConnectionChannel::h2RequestsToSend, i, indexOf(), pauseConnection(), proxy, Q_ASSERT, QHttpNetworkConnectionChannel::reply, reply, resumeConnection(), QMultiMap< Key, T >::size(), QHttpNetworkConnectionChannel::socket, and QHttpNetworkConnectionChannel::switchedToHttp2.
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::emitReplyError | ( | QAbstractSocket * | socket, |
| QHttpNetworkReply * | reply, | ||
| QNetworkReply::NetworkError | errorCode | ||
| ) |
Definition at line 339 of file qhttpnetworkconnection.cpp.
References channels, QHttpNetworkConnectionChannel::close(), emit, errorDetail(), QIODevice::errorString(), i, indexOf(), QMetaObject::invokeMethod(), QHttpNetworkConnectionChannel::protocolHandler, Qt::QueuedConnection, QHttpNetworkConnectionChannel::reply, reply, QHttpNetworkConnectionChannel::request, QHttpNetworkConnectionChannel::requeueCurrentlyPipelinedRequests(), and socket.
Referenced by _q_hostLookupFinished(), and parseRedirectResponse().
Here is the call graph for this function:
Here is the caller graph for this function:| QString QHttpNetworkConnectionPrivate::errorDetail | ( | QNetworkReply::NetworkError | errorCode, |
| QAbstractSocket * | socket, | ||
| const QString & | extraDetail = QString() |
||
| ) |
Definition at line 884 of file qhttpnetworkconnection.cpp.
References QString::arg(), QNetworkReply::AuthenticationRequiredError, QNetworkReply::ConnectionRefusedError, QIODevice::errorString(), hostName, QNetworkReply::HostNotFoundError, QNetworkReply::InsecureRedirectError, QAbstractSocket::peerName(), QNetworkReply::ProtocolFailure, QNetworkReply::ProtocolUnknownError, QNetworkReply::ProxyAuthenticationRequiredError, QStringLiteral, QNetworkReply::RemoteHostClosedError, socket, QNetworkReply::SslHandshakeFailedError, QNetworkReply::TimeoutError, QNetworkReply::TooManyRedirectsError, and QCoreApplication::translate().
Referenced by emitReplyError(), and handleAuthenticateChallenge().
Here is the call graph for this function:
Here is the caller graph for this function:| void QHttpNetworkConnectionPrivate::fillHttp2Queue | ( | ) |
Definition at line 671 of file qhttpnetworkconnection.cpp.
References channels, QList< T >::clear(), QHttpNetworkConnectionChannel::h2RequestsToSend, QHttpNetworkRequest::HighPriority, highPriorityQueue, QMultiMap< Key, T >::insert(), lowPriorityQueue, and prepareRequest().
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::fillPipeline | ( | QAbstractSocket * | socket | ) |
Definition at line 762 of file qhttpnetworkconnection.cpp.
References QHttpNetworkConnectionChannel::alreadyPipelinedRequests, QHttpNetworkConnectionChannel::authenticator, channels, QAbstractSocket::ConnectedState, defaultPipelineLength, defaultRePipelineLength, fillPipeline(), QHttpNetworkRequest::Get, highPriorityQueue, i, indexOf(), QString::isEmpty(), QList< T >::isEmpty(), lowPriorityQueue, QAuthenticator::password(), QHttpNetworkConnectionChannel::pipelineFlush(), QHttpNetworkConnectionChannel::PipeliningProbablySupported, QHttpNetworkConnectionChannel::proxyAuthenticator, QHttpNetworkConnectionChannel::ReadingState, reply, request, QList< T >::size(), socket, state, QAbstractSocket::state(), QAuthenticator::user(), and QHttpNetworkConnectionChannel::WaitingState.
Referenced by _q_startNextRequest(), and fillPipeline().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QHttpNetworkConnectionPrivate::fillPipeline | ( | QList< HttpMessagePair > & | queue, |
| QHttpNetworkConnectionChannel & | channel | ||
| ) |
Definition at line 845 of file qhttpnetworkconnection.cpp.
References channel, QHttpNetworkRequest::Get, i, QString::isEmpty(), prepareRequest(), queue, request, QNetworkRequest::url(), and QUrl::userInfo().
Here is the call graph for this function:| bool QHttpNetworkConnectionPrivate::handleAuthenticateChallenge | ( | QAbstractSocket * | socket, |
| QHttpNetworkReply * | reply, | ||
| bool | isProxy, | ||
| bool & | resend | ||
| ) |
Definition at line 404 of file qhttpnetworkconnection.cpp.
References QHttpNetworkConnectionChannel::authenticationCredentialsSent, QNetworkReply::AuthenticationRequiredError, QHttpNetworkConnectionChannel::authenticator, channels, copyCredentials(), QAuthenticator::detach(), QAuthenticatorPrivate::Done, emit, errorDetail(), QIODevice::errorString(), QAuthenticatorPrivate::getPrivate(), header(), QNetworkReply::header(), QUrl::host(), i, indexOf(), QAuthenticatorPrivate::isMethodSupported(), QAuthenticator::isNull(), networkProxy, QAuthenticatorPrivate::None, QAuthenticatorPrivate::Ntlm, pauseConnection(), QAuthenticatorPrivate::Phase1, priv(), QNetworkReply::ProxyAuthenticationRequiredError, QHttpNetworkConnectionChannel::proxyAuthenticator, QHttpNetworkConnectionChannel::proxyCredentialsSent, Q_ASSERT, QIODevice::readyRead(), reply, QNetworkReply::request(), resumeConnection(), socket, QAuthenticatorPrivate::Start, and QNetworkReply::url().
Here is the call graph for this function:| int QHttpNetworkConnectionPrivate::indexOf | ( | QAbstractSocket * | socket | ) | const |
Definition at line 157 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channels, i, qFatal, and socket.
Referenced by createAuthorization(), dequeueRequest(), emitProxyAuthenticationRequired(), emitReplyError(), fillPipeline(), handleAuthenticateChallenge(), and shouldEmitChannelError().
Here is the caller graph for this function:| void QHttpNetworkConnectionPrivate::init | ( | ) |
Definition at line 105 of file qhttpnetworkconnection.cpp.
References _q_connectDelayedChannel(), channelCount, channels, QObject::connect(), delayedConnectionTimer, encrypt, i, QHttpNetworkConnectionChannel::setConnection(), QTimer::setSingleShot(), SIGNAL, SLOT, and QHttpNetworkConnectionChannel::ssl.
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::networkLayerDetected | ( | QAbstractSocket::NetworkLayerProtocol | protocol | ) |
Definition at line 1327 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channels, QHttpNetworkConnectionChannel::close(), QHttpNetworkConnectionChannel::ConnectingState, i, and state.
Here is the call graph for this function:| QUrl QHttpNetworkConnectionPrivate::parseRedirectResponse | ( | QAbstractSocket * | socket, |
| QHttpNetworkReply * | reply | ||
| ) |
Definition at line 505 of file qhttpnetworkconnection.cpp.
References emitReplyError(), QNetworkReply::NoError, parseRedirectResponse(), reply, and socket.
Here is the call graph for this function:| QHttpNetworkConnectionPrivate::ParseRedirectResult QHttpNetworkConnectionPrivate::parseRedirectResponse | ( | QHttpNetworkReply * | reply | ) |
Definition at line 517 of file qhttpnetworkconnection.cpp.
References Qt::CaseInsensitive, QString::compare(), QString::first(), QUrl::fromEncoded(), header(), QNetworkReply::header(), QUrl::host(), QNetworkReply::InsecureRedirectError, QUrl::isRelative(), QUrl::isValid(), QNetworkReply::NoError, QNetworkRequest::NoLessSafeRedirectPolicy, QUrl::port(), QNetworkReply::ProtocolUnknownError, Q_ASSERT, reply, QNetworkReply::request(), QUrl::resolved(), QNetworkRequest::SameOriginRedirectPolicy, QUrl::scheme(), QNetworkReply::TooManyRedirectsError, QNetworkRequest::url(), and QNetworkRequest::UserVerifiedRedirectPolicy.
Referenced by parseRedirectResponse().
Here is the call graph for this function:
Here is the caller graph for this function:| void QHttpNetworkConnectionPrivate::pauseConnection | ( | ) |
Definition at line 117 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channels, encrypt, i, PausedState, QAbstractSocketPrivate::pauseSocketNotifiers(), QSslSocketPrivate::pauseSocketNotifiers(), socket, and state.
Referenced by emitProxyAuthenticationRequired(), and handleAuthenticateChallenge().
Here is the call graph for this function:
Here is the caller graph for this function:| QHttpNetworkRequest QHttpNetworkConnectionPrivate::predictNextRequest | ( | ) | const |
Definition at line 743 of file qhttpnetworkconnection.cpp.
References highPriorityQueue, QList< T >::isEmpty(), QList< T >::last(), and lowPriorityQueue.
Here is the call graph for this function:| QHttpNetworkReply * QHttpNetworkConnectionPrivate::predictNextRequestsReply | ( | ) | const |
Definition at line 752 of file qhttpnetworkconnection.cpp.
References highPriorityQueue, QList< T >::isEmpty(), QList< T >::last(), and lowPriorityQueue.
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::prepareRequest | ( | HttpMessagePair & | request | ) |
Definition at line 229 of file qhttpnetworkconnection.cpp.
References QDecompressHelper::acceptedEncoding(), add(), QChar::fromLatin1(), QString::fromLatin1(), hostName, QNetworkProxy::HttpCachingProxy, QAbstractSocket::IPv6Protocol, QLocale::name(), networkProxy, QByteArray::number(), QUrl::port(), Q_UNLIKELY, qFatal, QString::replace(), reply, request, QNonContiguousByteDevice::size(), QLocale::system(), systemLocale(), QUrl::toAce(), QString::toLatin1(), QNetworkProxy::type(), and QNetworkRequest::url().
Referenced by dequeueRequest(), fillHttp2Queue(), fillPipeline(), and queueRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| QHttpNetworkReply * QHttpNetworkConnectionPrivate::queueRequest | ( | const QHttpNetworkRequest & | request | ) |
Definition at line 619 of file qhttpnetworkconnection.cpp.
References _q_startNextRequest(), channels, connectionType, QHttpNetworkConnection::ConnectionTypeHTTP, QHttpNetworkConnection::ConnectionTypeHTTP2, encrypt, QHttpNetworkConnectionChannel::h2RequestsToSend, QHttpNetworkRequest::HighPriority, highPriorityQueue, HostLookupPending, QMultiMap< Key, T >::insert(), IPv4, IPv6, QHttpNetworkRequest::LowPriority, lowPriorityQueue, networkLayerState, QHttpNetworkRequest::NormalPriority, preConnectRequests, prepareRequest(), QList< T >::prepend(), QNetworkRequest::priority(), qMakePair(), reply, request, QNetworkReply::setRequest(), startHostInfoLookup(), Unknown, and QNetworkRequest::url().
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::readMoreLater | ( | QHttpNetworkReply * | reply | ) |
Definition at line 1176 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channels, i, QMetaObject::invokeMethod(), Qt::QueuedConnection, and reply.
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::removeReply | ( | QHttpNetworkReply * | reply | ) |
Definition at line 936 of file qhttpnetworkconnection.cpp.
References QHttpNetworkConnectionChannel::abort(), activeChannelCount, QHttpNetworkConnectionChannel::alreadyPipelinedRequests, QList< T >::at(), QMultiMap< Key, T >::begin(), channels, QHttpNetworkConnectionChannel::close(), QMultiMap< Key, T >::end(), QHttpNetworkConnectionChannel::h2RequestsToSend, highPriorityQueue, i, QMetaObject::invokeMethod(), QList< T >::isEmpty(), QNetworkReply::isFinished(), it, j, lowPriorityQueue, QHttpNetworkConnectionChannel::protocolHandler, Qt::QueuedConnection, QMultiMap< Key, T >::remove(), QList< T >::removeAt(), QHttpNetworkConnectionChannel::reply, reply, QHttpNetworkConnectionChannel::request, QHttpNetworkConnectionChannel::requeueCurrentlyPipelinedRequests(), QHttpNetworkConnectionChannel::resendCurrent, and QList< T >::size().
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::requeueRequest | ( | const HttpMessagePair & | pair | ) |
Definition at line 690 of file qhttpnetworkconnection.cpp.
References QHttpNetworkRequest::HighPriority, highPriorityQueue, QMetaObject::invokeMethod(), QHttpNetworkRequest::LowPriority, lowPriorityQueue, QHttpNetworkRequest::NormalPriority, QList< T >::prepend(), QNetworkRequest::priority(), Qt::QueuedConnection, and request.
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::resumeConnection | ( | ) |
Definition at line 134 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channels, encrypt, i, QMetaObject::invokeMethod(), Qt::QueuedConnection, QAbstractSocketPrivate::resumeSocketNotifiers(), QSslSocketPrivate::resumeSocketNotifiers(), RunningState, socket, state, and QHttpNetworkConnectionChannel::WritingState.
Referenced by emitProxyAuthenticationRequired(), and handleAuthenticateChallenge().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QHttpNetworkConnectionPrivate::shouldEmitChannelError | ( | QAbstractSocket * | socket | ) |
Definition at line 171 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channelCount, channels, QHttpNetworkConnectionChannel::close(), QHttpNetworkConnectionChannel::ClosingState, delayedConnectionTimer, QHttpNetworkConnectionChannel::ensureConnection(), HostLookupPending, i, indexOf(), QMetaObject::invokeMethod(), IPv4, IPv4or6, QAbstractSocket::IPv4Protocol, IPv6, QAbstractSocket::IPv6Protocol, QTimer::isActive(), QHttpNetworkConnectionChannel::networkLayerPreference, networkLayerState, Qt::QueuedConnection, qWarning, socket, QHttpNetworkConnectionChannel::state, QTimer::stop(), and Unknown.
Here is the call graph for this function:| void QHttpNetworkConnectionPrivate::startHostInfoLookup | ( | ) |
Definition at line 1193 of file qhttpnetworkconnection.cpp.
References _q_hostLookupFinished(), QNetworkProxy::capabilities(), channels, HostLookupPending, hostName, QNetworkProxy::hostName(), QNetworkProxy::HostNameLookupCapability, QMetaObject::invokeMethod(), IPv4, QAbstractSocket::IPv4Protocol, IPv6, QAbstractSocket::IPv6Protocol, networkLayerState, networkProxy, QHostAddress::protocol(), QHttpNetworkConnectionChannel::proxy, proxy, qt_qhostinfo_lookup(), Qt::QueuedConnection, QHostAddress::setAddress(), and SLOT.
Referenced by queueRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| void QHttpNetworkConnectionPrivate::startNetworkLayerStateLookup | ( | ) |
Definition at line 1302 of file qhttpnetworkconnection.cpp.
References activeChannelCount, QAbstractSocket::AnyIPProtocol, channels, delayedConnectionTimer, delayIpv4, QHttpNetworkConnectionChannel::ensureConnection(), IPv4or6, QAbstractSocket::IPv4Protocol, QAbstractSocket::IPv6Protocol, QHttpNetworkConnectionChannel::networkLayerPreference, networkLayerState, Q_ASSERT, and QTimer::start().
Referenced by _q_hostLookupFinished().
Here is the call graph for this function:
Here is the caller graph for this function:| qint64 QHttpNetworkConnectionPrivate::uncompressedBytesAvailable | ( | const QHttpNetworkReply & | reply | ) | const |
Definition at line 219 of file qhttpnetworkconnection.cpp.
References reply.
| qint64 QHttpNetworkConnectionPrivate::uncompressedBytesAvailableNextBlock | ( | const QHttpNetworkReply & | reply | ) | const |
Definition at line 224 of file qhttpnetworkconnection.cpp.
References reply.
| void QHttpNetworkConnectionPrivate::updateChannel | ( | int | i, |
| const HttpMessagePair & | messagePair | ||
| ) |
Definition at line 734 of file qhttpnetworkconnection.cpp.
References channels, i, QHttpNetworkConnectionChannel::reply, and QHttpNetworkConnectionChannel::request.
Referenced by dequeueRequest().
Here is the caller graph for this function:
|
friend |
Definition at line 264 of file qhttpnetworkconnection_p.h.
| int QHttpNetworkConnectionPrivate::activeChannelCount |
Definition at line 214 of file qhttpnetworkconnection_p.h.
Referenced by QHttpNetworkConnectionPrivate(), QHttpNetworkConnectionPrivate(), _q_startNextRequest(), copyCredentials(), indexOf(), networkLayerDetected(), pauseConnection(), readMoreLater(), removeReply(), resumeConnection(), shouldEmitChannelError(), and startNetworkLayerStateLookup().
| const int QHttpNetworkConnectionPrivate::channelCount |
Definition at line 216 of file qhttpnetworkconnection_p.h.
Referenced by QHttpNetworkConnectionPrivate(), QHttpNetworkConnectionPrivate(), ~QHttpNetworkConnectionPrivate(), init(), and shouldEmitChannelError().
| QHttpNetworkConnectionChannel* QHttpNetworkConnectionPrivate::channels |
Definition at line 218 of file qhttpnetworkconnection_p.h.
Referenced by QHttpNetworkConnectionPrivate(), QHttpNetworkConnectionPrivate(), ~QHttpNetworkConnectionPrivate(), _q_connectDelayedChannel(), _q_hostLookupFinished(), _q_startNextRequest(), copyCredentials(), createAuthorization(), emitReplyError(), fillHttp2Queue(), fillPipeline(), handleAuthenticateChallenge(), indexOf(), init(), networkLayerDetected(), pauseConnection(), queueRequest(), readMoreLater(), removeReply(), resumeConnection(), shouldEmitChannelError(), startHostInfoLookup(), startNetworkLayerStateLookup(), and updateChannel().
| QNetworkConnectionMonitor QHttpNetworkConnectionPrivate::connectionMonitor |
Definition at line 262 of file qhttpnetworkconnection_p.h.
| QHttpNetworkConnection::ConnectionType QHttpNetworkConnectionPrivate::connectionType |
Definition at line 246 of file qhttpnetworkconnection_p.h.
Referenced by _q_hostLookupFinished(), _q_startNextRequest(), emitProxyAuthenticationRequired(), and queueRequest().
|
static |
Definition at line 141 of file qhttpnetworkconnection_p.h.
|
static |
Definition at line 142 of file qhttpnetworkconnection_p.h.
Referenced by fillPipeline().
|
static |
Definition at line 143 of file qhttpnetworkconnection_p.h.
Referenced by fillPipeline().
| QTimer QHttpNetworkConnectionPrivate::delayedConnectionTimer |
Definition at line 217 of file qhttpnetworkconnection_p.h.
Referenced by init(), shouldEmitChannelError(), and startNetworkLayerStateLookup().
| bool QHttpNetworkConnectionPrivate::delayIpv4 |
Definition at line 211 of file qhttpnetworkconnection_p.h.
Referenced by _q_connectDelayedChannel(), _q_hostLookupFinished(), and startNetworkLayerStateLookup().
| bool QHttpNetworkConnectionPrivate::encrypt |
Definition at line 210 of file qhttpnetworkconnection_p.h.
Referenced by init(), pauseConnection(), queueRequest(), and resumeConnection().
| QList<HttpMessagePair> QHttpNetworkConnectionPrivate::highPriorityQueue |
Definition at line 241 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), dequeueRequest(), fillHttp2Queue(), fillPipeline(), predictNextRequest(), predictNextRequestsReply(), queueRequest(), removeReply(), and requeueRequest().
| QString QHttpNetworkConnectionPrivate::hostName |
Definition at line 208 of file qhttpnetworkconnection_p.h.
Referenced by errorDetail(), prepareRequest(), and startHostInfoLookup().
| QHttp2Configuration QHttpNetworkConnectionPrivate::http2Parameters |
Definition at line 252 of file qhttpnetworkconnection_p.h.
| QList<HttpMessagePair> QHttpNetworkConnectionPrivate::lowPriorityQueue |
Definition at line 242 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), dequeueRequest(), fillHttp2Queue(), fillPipeline(), predictNextRequest(), predictNextRequestsReply(), queueRequest(), removeReply(), and requeueRequest().
| NetworkLayerPreferenceState QHttpNetworkConnectionPrivate::networkLayerState |
Definition at line 168 of file qhttpnetworkconnection_p.h.
Referenced by _q_hostLookupFinished(), _q_startNextRequest(), queueRequest(), shouldEmitChannelError(), startHostInfoLookup(), and startNetworkLayerStateLookup().
| QNetworkProxy QHttpNetworkConnectionPrivate::networkProxy |
Definition at line 236 of file qhttpnetworkconnection_p.h.
Referenced by _q_hostLookupFinished(), createAuthorization(), handleAuthenticateChallenge(), prepareRequest(), and startHostInfoLookup().
| QString QHttpNetworkConnectionPrivate::peerVerifyName |
Definition at line 254 of file qhttpnetworkconnection_p.h.
| quint16 QHttpNetworkConnectionPrivate::port |
Definition at line 209 of file qhttpnetworkconnection_p.h.
| int QHttpNetworkConnectionPrivate::preConnectRequests |
Definition at line 244 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), and queueRequest().
| std::shared_ptr<QSslContext> QHttpNetworkConnectionPrivate::sslContext |
Definition at line 249 of file qhttpnetworkconnection_p.h.
| ConnectionState QHttpNetworkConnectionPrivate::state |
Definition at line 167 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), fillPipeline(), networkLayerDetected(), pauseConnection(), and resumeConnection().