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>.
Loading...
Searching...
No Matches
QHttpNetworkConnectionChannel Class Reference

#include <qhttpnetworkconnectionchannel_p.h>

+ Inheritance diagram for QHttpNetworkConnectionChannel:
+ Collaboration diagram for QHttpNetworkConnectionChannel:

Public Types

enum  ChannelState {
  IdleState = 0 , ConnectingState = 1 , WritingState = 2 , WaitingState = 4 ,
  ReadingState = 8 , ClosingState = 16 , BusyState = (ConnectingState|WritingState|WaitingState|ReadingState|ClosingState)
}
 
enum  PipeliningSupport { PipeliningSupportUnknown , PipeliningProbablySupported , PipeliningNotSupported }
 

Public Member Functions

void ignoreSslErrors ()
 
void ignoreSslErrors (const QList< QSslError > &errors)
 
void setSslConfiguration (const QSslConfiguration &config)
 
void requeueHttp2Requests ()
 
void emitFinishedWithError (QNetworkReply::NetworkError error, const char *message)
 
void pipelineInto (HttpMessagePair &pair)
 
void pipelineFlush ()
 
void requeueCurrentlyPipelinedRequests ()
 
void detectPipeliningSupport ()
 
 QHttpNetworkConnectionChannel ()
 
void setConnection (QHttpNetworkConnection *c)
 
void setProxy (const QNetworkProxy &networkProxy)
 
void init ()
 
void close ()
 
void abort ()
 
bool sendRequest ()
 
void sendRequestDelayed ()
 
bool ensureConnection ()
 
void allDone ()
 
void handleStatus ()
 
bool resetUploadData ()
 
void handleUnexpectedEOF ()
 
void closeAndResendCurrentRequest ()
 
void resendCurrentRequest ()
 
bool isSocketBusy () const
 
bool isSocketWriting () const
 
bool isSocketWaiting () const
 
bool isSocketReading () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 

Public Attributes

QIODevicesocket
 
bool ssl
 
bool isInitialized
 
ChannelState state
 
QHttpNetworkRequest request
 
QHttpNetworkReplyreply
 
qint64 written
 
qint64 bytesTotal
 
bool resendCurrent
 
int lastStatus
 
bool pendingEncrypt
 
int reconnectAttempts
 
QAuthenticator authenticator
 
QAuthenticator proxyAuthenticator
 
bool authenticationCredentialsSent
 
bool proxyCredentialsSent
 
std::unique_ptr< QAbstractProtocolHandlerprotocolHandler
 
QMultiMap< int, HttpMessagePairh2RequestsToSend
 
bool switchedToHttp2 = false
 
bool ignoreAllSslErrors
 
QList< QSslErrorignoreSslErrorsList
 
QScopedPointer< QSslConfigurationsslConfiguration
 
PipeliningSupport pipeliningSupported
 
QList< HttpMessagePairalreadyPipelinedRequests
 
QByteArray pipeline
 
QAbstractSocket::NetworkLayerProtocol networkLayerPreference
 
QPointer< QHttpNetworkConnectionconnection
 
QNetworkProxy proxy
 

Protected Slots

void _q_receiveReply ()
 
void _q_bytesWritten (qint64 bytes)
 
void _q_readyRead ()
 
void _q_disconnected ()
 
void _q_connected_abstract_socket (QAbstractSocket *socket)
 
void _q_connected_local_socket (QLocalSocket *socket)
 
void _q_connected ()
 
void _q_error (QAbstractSocket::SocketError)
 
void _q_proxyAuthenticationRequired (const QNetworkProxy &proxy, QAuthenticator *auth)
 
void _q_uploadDataReadyRead ()
 
void _q_encrypted ()
 
void _q_sslErrors (const QList< QSslError > &errors)
 
void _q_preSharedKeyAuthenticationRequired (QSslPreSharedKeyAuthenticator *)
 
void _q_encryptedBytesWritten (qint64 bytes)
 

Friends

class QHttpProtocolHandler
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Detailed Description

Definition at line 61 of file qhttpnetworkconnectionchannel_p.h.

Member Enumeration Documentation

◆ ChannelState

Enumerator
IdleState 
ConnectingState 
WritingState 
WaitingState 
ReadingState 
ClosingState 
BusyState 

Definition at line 66 of file qhttpnetworkconnectionchannel_p.h.

◆ PipeliningSupport

Enumerator
PipeliningSupportUnknown 
PipeliningProbablySupported 
PipeliningNotSupported 

Definition at line 107 of file qhttpnetworkconnectionchannel_p.h.

Constructor & Destructor Documentation

◆ QHttpNetworkConnectionChannel()

QHttpNetworkConnectionChannel::QHttpNetworkConnectionChannel ( )

Definition at line 51 of file qhttpnetworkconnectionchannel.cpp.

Member Function Documentation

◆ _q_bytesWritten

void QHttpNetworkConnectionChannel::_q_bytesWritten ( qint64 bytes)
protectedslot

Definition at line 833 of file qhttpnetworkconnectionchannel.cpp.

References isSocketWriting(), Q_UNUSED, sendRequest(), and ssl.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_connected

void QHttpNetworkConnectionChannel::_q_connected ( )
protectedslot

Definition at line 985 of file qhttpnetworkconnectionchannel.cpp.

References _q_connected_abstract_socket(), _q_connected_local_socket(), and socket.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_connected_abstract_socket

◆ _q_connected_local_socket

void QHttpNetworkConnectionChannel::_q_connected_local_socket ( QLocalSocket * socket)
protectedslot

Definition at line 976 of file qhttpnetworkconnectionchannel.cpp.

References connection, IdleState, reply, sendRequest(), and state.

Referenced by _q_connected().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_disconnected

void QHttpNetworkConnectionChannel::_q_disconnected ( )
protectedslot

Definition at line 848 of file qhttpnetworkconnectionchannel.cpp.

References _q_receiveReply(), alreadyPipelinedRequests, QIODevice::bytesAvailable(), ClosingState, connection, IdleState, QMetaObject::invokeMethod(), isSocketReading(), isSocketWaiting(), pendingEncrypt, Qt::QueuedConnection, ReadingState, reply, requeueCurrentlyPipelinedRequests(), resendCurrent, QList< T >::size(), socket, and state.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_encrypted

◆ _q_encryptedBytesWritten

void QHttpNetworkConnectionChannel::_q_encryptedBytesWritten ( qint64 bytes)
protectedslot

Definition at line 1369 of file qhttpnetworkconnectionchannel.cpp.

References isSocketWriting(), Q_UNUSED, and sendRequest().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_error

void QHttpNetworkConnectionChannel::_q_error ( QAbstractSocket::SocketError socketError)
protectedslot

Definition at line 993 of file qhttpnetworkconnectionchannel.cpp.

References _q_receiveReply(), QIODevice::bytesAvailable(), ClosingState, connection, QNetworkReply::ConnectionRefusedError, QAbstractSocket::ConnectionRefusedError, QHttpNetworkConnection::connectionType(), QHttpNetworkConnection::ConnectionTypeHTTP2, QHttpNetworkConnection::ConnectionTypeHTTP2Direct, QHttpNetworkReply::contentLength(), emit, QIODevice::errorString(), QHttpNetworkReply::errorString(), QHttpNetworkReply::finishedWithError(), h2RequestsToSend, QHttp2ProtocolHandler::handleConnectionClosure(), QNetworkReply::HostNotFoundError, QAbstractSocket::HostNotFoundError, IdleState, QMetaObject::invokeMethod(), QNetworkProxy::NoProxy, pendingEncrypt, protocolHandler, QNetworkReply::ProxyAuthenticationRequiredError, QAbstractSocket::ProxyAuthenticationRequiredError, QNetworkReply::ProxyConnectionClosedError, QAbstractSocket::ProxyConnectionClosedError, QNetworkReply::ProxyConnectionRefusedError, QAbstractSocket::ProxyConnectionRefusedError, QAbstractSocket::ProxyConnectionTimeoutError, QNetworkReply::ProxyTimeoutError, Q_ASSERT, Qt::QueuedConnection, ReadingState, reconnectAttempts, QNetworkReply::RemoteHostClosedError, QAbstractSocket::RemoteHostClosedError, reply, requeueCurrentlyPipelinedRequests(), resendCurrentRequest(), QHttpNetworkReply::setDownstreamLimited(), QHttpNetworkReply::setReadBufferSize(), socket, QSocketAbstraction::socketState(), QAbstractSocket::SocketTimeoutError, ssl, QNetworkReply::SslHandshakeFailedError, QAbstractSocket::SslHandshakeFailedError, state, switchedToHttp2, QNetworkReply::TimeoutError, QAbstractSocket::UnconnectedState, QNetworkReply::UnknownNetworkError, and WritingState.

Referenced by QHttpProtocolHandler::_q_readyRead(), and init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_preSharedKeyAuthenticationRequired

void QHttpNetworkConnectionChannel::_q_preSharedKeyAuthenticationRequired ( QSslPreSharedKeyAuthenticator * authenticator)
protectedslot

Definition at line 1346 of file qhttpnetworkconnectionchannel.cpp.

References authenticator, connection, QHttpNetworkConnection::connectionType(), QHttpNetworkConnection::ConnectionTypeHTTP, emit, h2RequestsToSend, pendingEncrypt, QHttpNetworkReply::preSharedKeyAuthenticationRequired(), Q_ASSERT, reply, and socket.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_proxyAuthenticationRequired

void QHttpNetworkConnectionChannel::_q_proxyAuthenticationRequired ( const QNetworkProxy & proxy,
QAuthenticator * auth )
protectedslot

Definition at line 1179 of file qhttpnetworkconnectionchannel.cpp.

References connection, QHttpNetworkConnection::connectionType(), QHttpNetworkConnection::ConnectionTypeHTTP2, QHttpNetworkConnection::ConnectionTypeHTTP2Direct, h2RequestsToSend, proxy, reply, QMultiMap< Key, T >::size(), socket, and switchedToHttp2.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_readyRead

void QHttpNetworkConnectionChannel::_q_readyRead ( )
protectedslot

Definition at line 261 of file qhttpnetworkconnectionchannel.cpp.

References protocolHandler, and Q_ASSERT.

Referenced by init().

+ Here is the caller graph for this function:

◆ _q_receiveReply

void QHttpNetworkConnectionChannel::_q_receiveReply ( )
protectedslot

Definition at line 255 of file qhttpnetworkconnectionchannel.cpp.

References protocolHandler, and Q_ASSERT.

Referenced by _q_disconnected(), and _q_error().

+ Here is the caller graph for this function:

◆ _q_sslErrors

void QHttpNetworkConnectionChannel::_q_sslErrors ( const QList< QSslError > & errors)
protectedslot

Definition at line 1318 of file qhttpnetworkconnectionchannel.cpp.

References connection, QHttpNetworkConnection::connectionType(), QHttpNetworkConnection::ConnectionTypeHTTP, emit, h2RequestsToSend, pendingEncrypt, Q_ASSERT, reply, socket, and QHttpNetworkReply::sslErrors().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_uploadDataReadyRead

void QHttpNetworkConnectionChannel::_q_uploadDataReadyRead ( )
protectedslot

Definition at line 1196 of file qhttpnetworkconnectionchannel.cpp.

References reply, and sendRequest().

+ Here is the call graph for this function:

◆ abort()

void QHttpNetworkConnectionChannel::abort ( )

Definition at line 211 of file qhttpnetworkconnectionchannel.cpp.

References ClosingState, IdleState, pendingEncrypt, socket, QSocketAbstraction::socketState(), state, QAbstractSocket::UnconnectedState, and QSocketAbstraction::visit().

Referenced by QHttpNetworkConnectionPrivate::removeReply().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ allDone()

◆ close()

void QHttpNetworkConnectionChannel::close ( )

Definition at line 188 of file qhttpnetworkconnectionchannel.cpp.

References QIODevice::close(), ClosingState, IdleState, pendingEncrypt, socket, QSocketAbstraction::socketState(), state, and QAbstractSocket::UnconnectedState.

Referenced by _q_connected_abstract_socket(), QHttp2ProtocolHandler::_q_receiveReply(), QHttpProtocolHandler::_q_receiveReply(), allDone(), closeAndResendCurrentRequest(), QHttpNetworkConnectionPrivate::emitReplyError(), handleStatus(), handleUnexpectedEOF(), QHttpNetworkConnectionPrivate::networkLayerDetected(), QHttpNetworkConnectionPrivate::removeReply(), and QHttpNetworkConnectionPrivate::shouldEmitChannelError().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ closeAndResendCurrentRequest()

void QHttpNetworkConnectionChannel::closeAndResendCurrentRequest ( )

Definition at line 794 of file qhttpnetworkconnectionchannel.cpp.

References close(), connection, QMetaObject::invokeMethod(), Qt::QueuedConnection, reply, requeueCurrentlyPipelinedRequests(), and resendCurrent.

Referenced by handleStatus(), and handleUnexpectedEOF().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ detectPipeliningSupport()

void QHttpNetworkConnectionChannel::detectPipeliningSupport ( )

Definition at line 581 of file qhttpnetworkconnectionchannel.cpp.

References QAbstractSocket::ConnectedState, QByteArray::contains(), QHttpNetworkReply::headerField(), QHttpNetworkReply::majorVersion(), QHttpNetworkReply::minorVersion(), PipeliningProbablySupported, pipeliningSupported, PipeliningSupportUnknown, Q_ASSERT, reply, socket, and QSocketAbstraction::socketState().

Referenced by allDone().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emitFinishedWithError()

void QHttpNetworkConnectionChannel::emitFinishedWithError ( QNetworkReply::NetworkError error,
const char * message )

Definition at line 1202 of file qhttpnetworkconnectionchannel.cpp.

References emit, error, QHttpNetworkReply::finishedWithError(), h2RequestsToSend, Q_ASSERT, and reply.

Referenced by _q_encrypted(), and QHttp2ProtocolHandler::sendRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ensureConnection()

bool QHttpNetworkConnectionChannel::ensureConnection ( )

Definition at line 291 of file qhttpnetworkconnectionchannel.cpp.

References authenticationCredentialsSent, authenticator, QHttpNetworkConnection::cacheProxy(), QSslSocketPrivate::checkSettingSslContext(), QAbstractSocket::ClosingState, QAbstractSocket::ConnectedState, ConnectingState, QAbstractSocket::ConnectingState, connection, QHttpNetworkConnection::connectionType(), QHttpNetworkConnection::ConnectionTypeHTTP2, QHttpNetworkConnection::ConnectionTypeHTTP2Direct, QAuthenticator::detach(), QAuthenticatorPrivate::Done, QAuthenticatorPrivate::getPrivate(), h2RequestsToSend, QHttpNetworkRequest::headerField(), QNetworkProxy::headers(), QAbstractSocket::HostLookupState, QHttpNetworkConnection::hostName(), QNetworkProxy::HttpProxy, ignoreAllSslErrors, ignoreSslErrorsList, init(), QMetaObject::invokeMethod(), QUrl::isEmpty(), QMultiMap< Key, T >::isEmpty(), isInitialized, QIODevice::isOpen(), networkLayerPreference, QNetworkProxy::NoProxy, QHttpNetworkConnection::peerVerifyName(), pendingEncrypt, pipeliningSupported, PipeliningSupportUnknown, QHttpNetworkConnection::port(), priv(), QNetworkReply::ProtocolUnknownError, proxy, proxyAuthenticator, proxyCredentialsSent, Q_ASSERT, Qt::QueuedConnection, QIODeviceBase::ReadWrite, QHttpHeaders::replaceOrAppend(), reply, request, resendCurrent, QNetworkProxy::setHeaders(), socket, QSocketAbstraction::socketState(), ssl, QHttpNetworkConnection::sslContext(), QAuthenticatorPrivate::Start, state, QHttpNetworkConnection::transparentProxy(), QNetworkProxy::type(), QIODeviceBase::Unbuffered, QAbstractSocket::UnconnectedState, QHttpNetworkRequest::url(), and QHttpHeaders::UserAgent.

Referenced by QHttpNetworkConnectionPrivate::_q_connectDelayedChannel(), QHttpNetworkConnectionPrivate::_q_startNextRequest(), QHttpProtocolHandler::sendRequest(), QHttpNetworkConnectionPrivate::shouldEmitChannelError(), and QHttpNetworkConnectionPrivate::startNetworkLayerStateLookup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleStatus()

void QHttpNetworkConnectionChannel::handleStatus ( )

Definition at line 622 of file qhttpnetworkconnectionchannel.cpp.

References alreadyPipelinedRequests, QNetworkReply::AuthenticationRequiredError, close(), closeAndResendCurrentRequest(), connection, emit, QHttpNetworkReply::errorString(), QHttpNetworkReply::finishedWithError(), QHttpNetworkReply::headerChanged(), QMetaObject::invokeMethod(), QList< T >::isEmpty(), QUrl::isValid(), QNetworkReply::ProxyAuthenticationRequiredError, Q_ASSERT, Qt::QueuedConnection, QHttpNetworkReply::readyRead(), reply, resendCurrent, resetUploadData(), QHttpNetworkReply::setRedirectUrl(), socket, and QHttpNetworkReply::statusCode().

Referenced by allDone().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleUnexpectedEOF()

void QHttpNetworkConnectionChannel::handleUnexpectedEOF ( )

Definition at line 268 of file qhttpnetworkconnectionchannel.cpp.

References close(), closeAndResendCurrentRequest(), connection, QHttpNetworkReply::connection(), emit, QHttpNetworkReply::errorString(), QHttpNetworkReply::finishedWithError(), QMetaObject::invokeMethod(), protocolHandler, Q_ASSERT, Qt::QueuedConnection, reconnectAttempts, QNetworkReply::RemoteHostClosedError, reply, request, requeueCurrentlyPipelinedRequests(), and socket.

Referenced by QHttpProtocolHandler::_q_receiveReply().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ignoreSslErrors() [1/2]

void QHttpNetworkConnectionChannel::ignoreSslErrors ( )

Definition at line 725 of file qhttpnetworkconnectionchannel.cpp.

References ignoreAllSslErrors, ignoreSslErrors(), and socket.

Referenced by ignoreSslErrors(), and ignoreSslErrors().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ignoreSslErrors() [2/2]

void QHttpNetworkConnectionChannel::ignoreSslErrors ( const QList< QSslError > & errors)

Definition at line 734 of file qhttpnetworkconnectionchannel.cpp.

References ignoreSslErrors(), ignoreSslErrorsList, and socket.

+ Here is the call graph for this function:

◆ init()

◆ isSocketBusy()

bool QHttpNetworkConnectionChannel::isSocketBusy ( ) const

Definition at line 813 of file qhttpnetworkconnectionchannel.cpp.

References BusyState, and state.

◆ isSocketReading()

bool QHttpNetworkConnectionChannel::isSocketReading ( ) const

Definition at line 828 of file qhttpnetworkconnectionchannel.cpp.

References ReadingState, and state.

Referenced by _q_disconnected(), and QHttpProtocolHandler::_q_readyRead().

+ Here is the caller graph for this function:

◆ isSocketWaiting()

bool QHttpNetworkConnectionChannel::isSocketWaiting ( ) const

Definition at line 823 of file qhttpnetworkconnectionchannel.cpp.

References state, and WaitingState.

Referenced by _q_disconnected(), and QHttpProtocolHandler::_q_readyRead().

+ Here is the caller graph for this function:

◆ isSocketWriting()

bool QHttpNetworkConnectionChannel::isSocketWriting ( ) const

Definition at line 818 of file qhttpnetworkconnectionchannel.cpp.

References state, and WritingState.

Referenced by _q_bytesWritten(), and _q_encryptedBytesWritten().

+ Here is the caller graph for this function:

◆ pipelineFlush()

void QHttpNetworkConnectionChannel::pipelineFlush ( )

Definition at line 779 of file qhttpnetworkconnectionchannel.cpp.

References QByteArray::clear(), QByteArray::isEmpty(), pipeline, socket, and QIODevice::write().

Referenced by QHttpNetworkConnectionPrivate::fillPipeline().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pipelineInto()

void QHttpNetworkConnectionChannel::pipelineInto ( HttpMessagePair & pair)

Definition at line 755 of file qhttpnetworkconnectionchannel.cpp.

References alreadyPipelinedRequests, QByteArray::append(), QList< T >::append(), QHttpNetworkRequestPrivate::autoDecompress, connection, QHttpNetworkReply::connection(), QHttpNetworkRequestPrivate::header(), QNetworkProxy::NoProxy, pipeline, reply, and request.

+ Here is the call graph for this function:

◆ requeueCurrentlyPipelinedRequests()

void QHttpNetworkConnectionChannel::requeueCurrentlyPipelinedRequests ( )

Definition at line 609 of file qhttpnetworkconnectionchannel.cpp.

References alreadyPipelinedRequests, QList< T >::at(), QList< T >::clear(), connection, i, QMetaObject::invokeMethod(), Qt::QueuedConnection, and QList< T >::size().

Referenced by _q_disconnected(), _q_error(), allDone(), closeAndResendCurrentRequest(), QHttpNetworkConnectionPrivate::emitReplyError(), handleUnexpectedEOF(), QHttpNetworkConnectionPrivate::removeReply(), and resendCurrentRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ requeueHttp2Requests()

void QHttpNetworkConnectionChannel::requeueHttp2Requests ( )

Definition at line 1311 of file qhttpnetworkconnectionchannel.cpp.

References connection, and h2RequestsToSend.

Referenced by _q_encrypted().

+ Here is the caller graph for this function:

◆ resendCurrentRequest()

void QHttpNetworkConnectionChannel::resendCurrentRequest ( )

Definition at line 804 of file qhttpnetworkconnectionchannel.cpp.

References connection, QMetaObject::invokeMethod(), Qt::QueuedConnection, reply, requeueCurrentlyPipelinedRequests(), and resendCurrent.

Referenced by _q_error().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetUploadData()

bool QHttpNetworkConnectionChannel::resetUploadData ( )

Definition at line 690 of file qhttpnetworkconnectionchannel.cpp.

References connection, QHttpNetworkConnection::connectionType(), QHttpNetworkConnection::ConnectionTypeHTTP2Direct, QNetworkReply::ContentReSendError, reply, request, socket, switchedToHttp2, QHttpNetworkRequest::uploadByteDevice(), and written.

Referenced by handleStatus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendRequest()

bool QHttpNetworkConnectionChannel::sendRequest ( )

Definition at line 234 of file qhttpnetworkconnectionchannel.cpp.

References protocolHandler, and Q_ASSERT.

Referenced by _q_bytesWritten(), _q_connected_abstract_socket(), _q_connected_local_socket(), _q_encryptedBytesWritten(), QHttpNetworkConnectionPrivate::_q_startNextRequest(), and _q_uploadDataReadyRead().

+ Here is the caller graph for this function:

◆ sendRequestDelayed()

void QHttpNetworkConnectionChannel::sendRequestDelayed ( )

Definition at line 246 of file qhttpnetworkconnectionchannel.cpp.

References QMetaObject::invokeMethod(), protocolHandler, Q_ASSERT, Qt::QueuedConnection, and reply.

Referenced by _q_encrypted().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setConnection()

void QHttpNetworkConnectionChannel::setConnection ( QHttpNetworkConnection * c)

Definition at line 1380 of file qhttpnetworkconnectionchannel.cpp.

References connection.

Referenced by QHttpNetworkConnectionPrivate::init().

+ Here is the caller graph for this function:

◆ setProxy()

void QHttpNetworkConnectionChannel::setProxy ( const QNetworkProxy & networkProxy)

Definition at line 713 of file qhttpnetworkconnectionchannel.cpp.

References proxy, and socket.

◆ setSslConfiguration()

void QHttpNetworkConnectionChannel::setSslConfiguration ( const QSslConfiguration & config)

Definition at line 742 of file qhttpnetworkconnectionchannel.cpp.

References QScopedPointer< T, Cleanup >::data(), QScopedPointer< T, Cleanup >::reset(), setSslConfiguration(), socket, and sslConfiguration.

Referenced by _q_encrypted(), and setSslConfiguration().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QHttpProtocolHandler

friend class QHttpProtocolHandler
friend

Member Data Documentation

◆ alreadyPipelinedRequests

◆ authenticationCredentialsSent

bool QHttpNetworkConnectionChannel::authenticationCredentialsSent

◆ authenticator

◆ bytesTotal

qint64 QHttpNetworkConnectionChannel::bytesTotal

Definition at line 82 of file qhttpnetworkconnectionchannel_p.h.

Referenced by allDone(), and QHttpProtocolHandler::sendRequest().

◆ connection

◆ h2RequestsToSend

◆ ignoreAllSslErrors

bool QHttpNetworkConnectionChannel::ignoreAllSslErrors

Definition at line 95 of file qhttpnetworkconnectionchannel_p.h.

Referenced by ensureConnection(), ignoreSslErrors(), and init().

◆ ignoreSslErrorsList

QList<QSslError> QHttpNetworkConnectionChannel::ignoreSslErrorsList

Definition at line 96 of file qhttpnetworkconnectionchannel_p.h.

Referenced by ensureConnection(), ignoreSslErrors(), and init().

◆ isInitialized

bool QHttpNetworkConnectionChannel::isInitialized

Definition at line 77 of file qhttpnetworkconnectionchannel_p.h.

Referenced by ensureConnection(), and init().

◆ lastStatus

int QHttpNetworkConnectionChannel::lastStatus

◆ networkLayerPreference

◆ pendingEncrypt

◆ pipeline

QByteArray QHttpNetworkConnectionChannel::pipeline

Definition at line 114 of file qhttpnetworkconnectionchannel_p.h.

Referenced by pipelineFlush(), and pipelineInto().

◆ pipeliningSupported

PipeliningSupport QHttpNetworkConnectionChannel::pipeliningSupported

◆ protocolHandler

◆ proxy

◆ proxyAuthenticator

◆ proxyCredentialsSent

bool QHttpNetworkConnectionChannel::proxyCredentialsSent

◆ reconnectAttempts

int QHttpNetworkConnectionChannel::reconnectAttempts

Definition at line 86 of file qhttpnetworkconnectionchannel_p.h.

Referenced by _q_error(), allDone(), and handleUnexpectedEOF().

◆ reply

◆ request

◆ resendCurrent

◆ socket

◆ ssl

◆ sslConfiguration

QScopedPointer<QSslConfiguration> QHttpNetworkConnectionChannel::sslConfiguration

Definition at line 97 of file qhttpnetworkconnectionchannel_p.h.

Referenced by init(), and setSslConfiguration().

◆ state

◆ switchedToHttp2

bool QHttpNetworkConnectionChannel::switchedToHttp2 = false

◆ written

qint64 QHttpNetworkConnectionChannel::written

The documentation for this class was generated from the following files: