Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qhttpnetworkconnection_p.h>
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 Member Functions | |
static ParseRedirectResult | parseRedirectResponse (QHttpNetworkReply *reply) |
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 Attributes | |
static constexpr int | defaultHttpChannelCount = 6 |
static const int | defaultPipelineLength = 3 |
static const int | defaultRePipelineLength = 2 |
Friends | |
class | QHttpNetworkConnectionChannel |
Definition at line 137 of file qhttpnetworkconnection_p.h.
anonymous enum |
Enumerator | |
---|---|
ChunkSize |
Definition at line 171 of file qhttpnetworkconnection_p.h.
Enumerator | |
---|---|
RunningState | |
PausedState |
Definition at line 147 of file qhttpnetworkconnection_p.h.
Enumerator | |
---|---|
Unknown | |
HostLookupPending | |
IPv4 | |
IPv6 | |
IPv4or6 |
Definition at line 152 of file qhttpnetworkconnection_p.h.
QHttpNetworkConnectionPrivate::QHttpNetworkConnectionPrivate | ( | quint16 | connectionCount, |
const QString & | hostName, | ||
quint16 | port, | ||
bool | encrypt, | ||
bool | isLocalSocket, | ||
QHttpNetworkConnection::ConnectionType | type ) |
Definition at line 53 of file qhttpnetworkconnection.cpp.
References QHttpNetworkConnectionPrivate(), activeChannelCount, channelCount, encrypt, IPv4, isLocalSocket, and networkLayerState.
Referenced by QHttpNetworkConnectionPrivate().
QHttpNetworkConnectionPrivate::~QHttpNetworkConnectionPrivate | ( | ) |
Definition at line 78 of file qhttpnetworkconnection.cpp.
References channelCount.
void QHttpNetworkConnectionPrivate::_q_connectDelayedChannel | ( | ) |
Definition at line 1354 of file qhttpnetworkconnection.cpp.
Definition at line 1251 of file qhttpnetworkconnection.cpp.
References IPv4, IPv4or6, IPv6, networkLayerState, startNetworkLayerStateLookup(), and Unknown.
Referenced by startHostInfoLookup().
void QHttpNetworkConnectionPrivate::_q_startNextRequest | ( | ) |
Definition at line 1036 of file qhttpnetworkconnection.cpp.
References activeChannelCount, HostLookupPending, IPv4or6, networkLayerState, PausedState, preConnectRequests, state, and Unknown.
Referenced by queueRequest().
void QHttpNetworkConnectionPrivate::copyCredentials | ( | int | fromChannel, |
QAuthenticator * | auth, | ||
bool | isProxy ) |
Definition at line 375 of file qhttpnetworkconnection.cpp.
References activeChannelCount.
void QHttpNetworkConnectionPrivate::createAuthorization | ( | QIODevice * | socket, |
QHttpNetworkRequest & | request ) |
Definition at line 577 of file qhttpnetworkconnection.cpp.
References QHttpNetworkConnectionChannel::authenticationCredentialsSent, and QHttpNetworkConnectionChannel::lastStatus.
bool QHttpNetworkConnectionPrivate::dequeueRequest | ( | QIODevice * | socket | ) |
Definition at line 713 of file qhttpnetworkconnection.cpp.
References prepareRequest(), and updateChannel().
void QHttpNetworkConnectionPrivate::emitProxyAuthenticationRequired | ( | const QHttpNetworkConnectionChannel * | chan, |
const QNetworkProxy & | proxy, | ||
QAuthenticator * | auth ) |
Definition at line 1577 of file qhttpnetworkconnection.cpp.
References pauseConnection(), QHttpNetworkConnectionChannel::reply, and resumeConnection().
void QHttpNetworkConnectionPrivate::emitReplyError | ( | QIODevice * | socket, |
QHttpNetworkReply * | reply, | ||
QNetworkReply::NetworkError | errorCode ) |
Definition at line 344 of file qhttpnetworkconnection.cpp.
QString QHttpNetworkConnectionPrivate::errorDetail | ( | QNetworkReply::NetworkError | errorCode, |
QIODevice * | socket, | ||
const QString & | extraDetail = QString() ) |
Definition at line 889 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::fillHttp2Queue | ( | ) |
Definition at line 676 of file qhttpnetworkconnection.cpp.
Definition at line 767 of file qhttpnetworkconnection.cpp.
bool QHttpNetworkConnectionPrivate::fillPipeline | ( | QList< HttpMessagePair > & | queue, |
QHttpNetworkConnectionChannel & | channel ) |
Definition at line 850 of file qhttpnetworkconnection.cpp.
References QHttpNetworkConnectionChannel::pipelineInto(), and prepareRequest().
bool QHttpNetworkConnectionPrivate::handleAuthenticateChallenge | ( | QIODevice * | socket, |
QHttpNetworkReply * | reply, | ||
bool | isProxy, | ||
bool & | resend ) |
Definition at line 409 of file qhttpnetworkconnection.cpp.
References pauseConnection(), and resumeConnection().
int QHttpNetworkConnectionPrivate::indexOf | ( | QIODevice * | socket | ) | const |
Definition at line 155 of file qhttpnetworkconnection.cpp.
References activeChannelCount.
void QHttpNetworkConnectionPrivate::init | ( | ) |
Definition at line 90 of file qhttpnetworkconnection.cpp.
References channelCount.
void QHttpNetworkConnectionPrivate::networkLayerDetected | ( | QAbstractSocket::NetworkLayerProtocol | protocol | ) |
Definition at line 1345 of file qhttpnetworkconnection.cpp.
References activeChannelCount.
|
static |
Definition at line 523 of file qhttpnetworkconnection.cpp.
Referenced by parseRedirectResponse().
QUrl QHttpNetworkConnectionPrivate::parseRedirectResponse | ( | QIODevice * | socket, |
QHttpNetworkReply * | reply ) |
Definition at line 511 of file qhttpnetworkconnection.cpp.
References parseRedirectResponse().
void QHttpNetworkConnectionPrivate::pauseConnection | ( | ) |
Definition at line 102 of file qhttpnetworkconnection.cpp.
References activeChannelCount, encrypt, PausedState, and state.
Referenced by emitProxyAuthenticationRequired(), and handleAuthenticateChallenge().
QHttpNetworkRequest QHttpNetworkConnectionPrivate::predictNextRequest | ( | ) | const |
Definition at line 748 of file qhttpnetworkconnection.cpp.
QHttpNetworkReply * QHttpNetworkConnectionPrivate::predictNextRequestsReply | ( | ) | const |
Definition at line 757 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::prepareRequest | ( | HttpMessagePair & | request | ) |
Definition at line 238 of file qhttpnetworkconnection.cpp.
References isLocalSocket.
Referenced by dequeueRequest(), fillPipeline(), and queueRequest().
QHttpNetworkReply * QHttpNetworkConnectionPrivate::queueRequest | ( | const QHttpNetworkRequest & | request | ) |
Definition at line 624 of file qhttpnetworkconnection.cpp.
References _q_startNextRequest(), HostLookupPending, IPv4, IPv6, networkLayerState, preConnectRequests, prepareRequest(), startHostInfoLookup(), and Unknown.
void QHttpNetworkConnectionPrivate::readMoreLater | ( | QHttpNetworkReply * | reply | ) |
Definition at line 1194 of file qhttpnetworkconnection.cpp.
References activeChannelCount.
void QHttpNetworkConnectionPrivate::removeReply | ( | QHttpNetworkReply * | reply | ) |
Definition at line 940 of file qhttpnetworkconnection.cpp.
References activeChannelCount.
void QHttpNetworkConnectionPrivate::requeueRequest | ( | const HttpMessagePair & | pair | ) |
Definition at line 695 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::resumeConnection | ( | ) |
Definition at line 126 of file qhttpnetworkconnection.cpp.
References activeChannelCount, encrypt, RunningState, and state.
Referenced by emitProxyAuthenticationRequired(), and handleAuthenticateChallenge().
bool QHttpNetworkConnectionPrivate::shouldEmitChannelError | ( | QIODevice * | socket | ) |
Definition at line 169 of file qhttpnetworkconnection.cpp.
References activeChannelCount, channelCount, HostLookupPending, IPv4or6, networkLayerState, and Unknown.
void QHttpNetworkConnectionPrivate::startHostInfoLookup | ( | ) |
Definition at line 1211 of file qhttpnetworkconnection.cpp.
References _q_hostLookupFinished(), HostLookupPending, IPv4, IPv6, and networkLayerState.
Referenced by queueRequest().
void QHttpNetworkConnectionPrivate::startNetworkLayerStateLookup | ( | ) |
Definition at line 1320 of file qhttpnetworkconnection.cpp.
References activeChannelCount, IPv4or6, and networkLayerState.
Referenced by _q_hostLookupFinished().
qint64 QHttpNetworkConnectionPrivate::uncompressedBytesAvailable | ( | const QHttpNetworkReply & | reply | ) | const |
Definition at line 217 of file qhttpnetworkconnection.cpp.
qint64 QHttpNetworkConnectionPrivate::uncompressedBytesAvailableNextBlock | ( | const QHttpNetworkReply & | reply | ) | const |
Definition at line 222 of file qhttpnetworkconnection.cpp.
void QHttpNetworkConnectionPrivate::updateChannel | ( | int | i, |
const HttpMessagePair & | messagePair ) |
Definition at line 739 of file qhttpnetworkconnection.cpp.
Referenced by dequeueRequest().
|
friend |
Definition at line 266 of file qhttpnetworkconnection_p.h.
int QHttpNetworkConnectionPrivate::activeChannelCount |
Definition at line 216 of file qhttpnetworkconnection_p.h.
Referenced by QHttpNetworkConnectionPrivate(), _q_startNextRequest(), copyCredentials(), indexOf(), networkLayerDetected(), pauseConnection(), readMoreLater(), removeReply(), resumeConnection(), shouldEmitChannelError(), and startNetworkLayerStateLookup().
const int QHttpNetworkConnectionPrivate::channelCount |
Definition at line 218 of file qhttpnetworkconnection_p.h.
Referenced by QHttpNetworkConnectionPrivate(), ~QHttpNetworkConnectionPrivate(), init(), and shouldEmitChannelError().
QHttpNetworkConnectionChannel* const QHttpNetworkConnectionPrivate::channels |
Definition at line 220 of file qhttpnetworkconnection_p.h.
QNetworkConnectionMonitor QHttpNetworkConnectionPrivate::connectionMonitor |
Definition at line 264 of file qhttpnetworkconnection_p.h.
QHttpNetworkConnection::ConnectionType QHttpNetworkConnectionPrivate::connectionType |
Definition at line 248 of file qhttpnetworkconnection_p.h.
|
staticconstexpr |
Definition at line 143 of file qhttpnetworkconnection_p.h.
|
static |
Definition at line 144 of file qhttpnetworkconnection_p.h.
|
static |
Definition at line 145 of file qhttpnetworkconnection_p.h.
QTimer QHttpNetworkConnectionPrivate::delayedConnectionTimer |
Definition at line 219 of file qhttpnetworkconnection_p.h.
bool QHttpNetworkConnectionPrivate::delayIpv4 = true |
Definition at line 213 of file qhttpnetworkconnection_p.h.
bool QHttpNetworkConnectionPrivate::encrypt |
Definition at line 211 of file qhttpnetworkconnection_p.h.
Referenced by QHttpNetworkConnectionPrivate(), pauseConnection(), and resumeConnection().
QList<HttpMessagePair> QHttpNetworkConnectionPrivate::highPriorityQueue |
Definition at line 243 of file qhttpnetworkconnection_p.h.
QString QHttpNetworkConnectionPrivate::hostName |
Definition at line 209 of file qhttpnetworkconnection_p.h.
QHttp2Configuration QHttpNetworkConnectionPrivate::http2Parameters |
Definition at line 254 of file qhttpnetworkconnection_p.h.
bool QHttpNetworkConnectionPrivate::isLocalSocket |
Definition at line 212 of file qhttpnetworkconnection_p.h.
Referenced by QHttpNetworkConnectionPrivate(), and prepareRequest().
QList<HttpMessagePair> QHttpNetworkConnectionPrivate::lowPriorityQueue |
Definition at line 244 of file qhttpnetworkconnection_p.h.
NetworkLayerPreferenceState QHttpNetworkConnectionPrivate::networkLayerState = Unknown |
Definition at line 169 of file qhttpnetworkconnection_p.h.
Referenced by QHttpNetworkConnectionPrivate(), _q_hostLookupFinished(), _q_startNextRequest(), queueRequest(), shouldEmitChannelError(), startHostInfoLookup(), and startNetworkLayerStateLookup().
QNetworkProxy QHttpNetworkConnectionPrivate::networkProxy |
Definition at line 238 of file qhttpnetworkconnection_p.h.
QString QHttpNetworkConnectionPrivate::peerVerifyName |
Definition at line 256 of file qhttpnetworkconnection_p.h.
quint16 QHttpNetworkConnectionPrivate::port |
Definition at line 210 of file qhttpnetworkconnection_p.h.
int QHttpNetworkConnectionPrivate::preConnectRequests = 0 |
Definition at line 246 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), and queueRequest().
std::shared_ptr<QSslContext> QHttpNetworkConnectionPrivate::sslContext |
Definition at line 251 of file qhttpnetworkconnection_p.h.
ConnectionState QHttpNetworkConnectionPrivate::state = RunningState |
Definition at line 168 of file qhttpnetworkconnection_p.h.
Referenced by _q_startNextRequest(), pauseConnection(), and resumeConnection().