Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QHttpProtocolHandler Class Reference

#include <qhttpprotocolhandler_p.h>

+ Inheritance diagram for QHttpProtocolHandler:
+ Collaboration diagram for QHttpProtocolHandler:

Public Member Functions

 QHttpProtocolHandler (QHttpNetworkConnectionChannel *channel)
 
- Public Member Functions inherited from QAbstractProtocolHandler
 QAbstractProtocolHandler (QHttpNetworkConnectionChannel *channel)
 
virtual ~QAbstractProtocolHandler ()
 
virtual void _q_receiveReply ()=0
 
virtual void _q_readyRead ()=0
 
virtual bool sendRequest ()=0
 
void setReply (QHttpNetworkReply *reply)
 

Private Member Functions

virtual void _q_receiveReply () override
 
virtual void _q_readyRead () override
 
virtual bool sendRequest () override
 

Additional Inherited Members

- Protected Attributes inherited from QAbstractProtocolHandler
QHttpNetworkConnectionChannelm_channel
 
QHttpNetworkReplym_reply
 
QAbstractSocketm_socket
 
QHttpNetworkConnectionm_connection
 

Detailed Description

Definition at line 28 of file qhttpprotocolhandler_p.h.

Constructor & Destructor Documentation

◆ QHttpProtocolHandler()

QHttpProtocolHandler::QHttpProtocolHandler ( QHttpNetworkConnectionChannel channel)

Definition at line 13 of file qhttpprotocolhandler.cpp.

Member Function Documentation

◆ _q_readyRead()

◆ _q_receiveReply()

void QHttpProtocolHandler::_q_receiveReply ( )
overrideprivatevirtual

Implements QAbstractProtocolHandler.

Definition at line 18 of file qhttpprotocolhandler.cpp.

References QHttpNetworkConnectionChannel::allDone(), QHttpNetworkReplyPrivate::AllDoneState, QHttpNetworkReplyPrivate::autoDecompress, QHttpNetworkReplyPrivate::bodyLength, QAbstractSocket::bytesAvailable(), QHttpNetworkReplyPrivate::clearHttpLayerInformation(), QHttpNetworkConnectionChannel::close(), QAbstractSocket::ConnectedState, QHttpNetworkReply::dataReadProgress(), QHttpNetworkReplyPrivate::downstreamLimited, emit, QHttpNetworkReplyPrivate::expectContent(), QHttpNetworkConnectionChannel::handleUnexpectedEOF(), QHttpNetworkReply::headerChanged(), QHttpNetworkReplyPrivate::isChunked(), QHttpNetworkReplyPrivate::isCompressed(), QByteDataBuffer::isEmpty(), QHttpNetworkConnectionChannel::lastStatus, QAbstractProtocolHandler::m_channel, QAbstractProtocolHandler::m_connection, QAbstractProtocolHandler::m_reply, QAbstractProtocolHandler::m_socket, QHttpNetworkReplyPrivate::NothingDoneState, QNetworkReply::ProtocolFailure, Q_ASSERT, Q_FALLTHROUGH, qWarning, QHttpNetworkReplyPrivate::readBody(), QHttpNetworkReplyPrivate::readBodyFast(), QHttpNetworkReplyPrivate::readBodyVeryFast(), QHttpNetworkReplyPrivate::readHeader(), QHttpNetworkReplyPrivate::ReadingDataState, QHttpNetworkReplyPrivate::ReadingHeaderState, QHttpNetworkReplyPrivate::ReadingStatusState, QHttpNetworkReply::readyRead(), QNetworkReply::RemoteHostClosedError, QHttpNetworkReplyPrivate::removeAutoDecompressHeader(), QHttpNetworkReplyPrivate::responseData, QHttpNetworkReplyPrivate::shouldEmitSignals(), QHttpNetworkReplyPrivate::state, QAbstractSocket::state(), state, QHttpNetworkReply::statusCode(), QHttpNetworkReplyPrivate::totalProgress, QAbstractSocket::UnconnectedState, and QHttpNetworkReplyPrivate::userProvidedDownloadBuffer.

Referenced by _q_readyRead().

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

◆ sendRequest()

bool QHttpProtocolHandler::sendRequest ( )
overrideprivatevirtual

Implements QAbstractProtocolHandler.

Definition at line 223 of file qhttpprotocolhandler.cpp.

References QNonContiguousByteDevice::advanceReadPointer(), QHttpNetworkConnectionChannel::allDone(), QHttpNetworkReplyPrivate::AllDoneState, QByteArray::append(), QHttpNetworkConnectionChannel::authenticator, QHttpNetworkReplyPrivate::autoDecompress, QHttpNetworkRequestPrivate::autoDecompress, QAbstractSocket::bytesAvailable(), QHttpNetworkConnectionChannel::bytesTotal, QAbstractSocket::bytesToWrite(), QHttpNetworkReplyPrivate::clear(), QObject::connect(), QHttpNetworkReplyPrivate::connection, QHttpNetworkReplyPrivate::connectionChannel, QHttpNetworkRequest::contentLength(), QHttpNetworkReply::dataSendProgress(), QObject::disconnect(), emit, QSslSocket::encryptedBytesToWrite(), QHttpNetworkConnectionChannel::ensureConnection(), QHttpNetworkRequestPrivate::header(), headerSize, QHttpNetworkConnectionChannel::IdleState, QMetaObject::invokeMethod(), QString::isEmpty(), QByteArray::isEmpty(), QAbstractProtocolHandler::m_channel, QAbstractProtocolHandler::m_connection, QAbstractProtocolHandler::m_reply, QAbstractProtocolHandler::m_socket, QNetworkProxy::NoProxy, QAuthenticator::password(), QUrl::password(), QHttpNetworkReplyPrivate::pipeliningUsed, QNonContiguousByteDevice::pos(), QHttpNetworkConnection::preConnectFinished(), QNetworkReply::ProtocolFailure, Q_ASSERT, Q_FALLTHROUGH, qMin(), Qt::QueuedConnection, qWarning, QHttpNetworkConnectionChannel::ReadingState, QNonContiguousByteDevice::readPointer(), QHttpNetworkConnectionChannel::reply, QHttpNetworkConnectionChannel::request, QUrl::scheme(), sendRequest(), QAuthenticator::setPassword(), QHttpNetworkRequest::setUrl(), QAuthenticator::setUser(), QUrl::setUserInfo(), SIGNAL, QByteArray::size(), SLOT, QHttpNetworkConnectionChannel::state, QNetworkReply::UnknownNetworkError, QHttpNetworkRequest::uploadByteDevice(), url, QHttpNetworkRequest::url(), QAuthenticator::user(), QUrl::userInfo(), QUrl::userName(), QHttpNetworkConnectionChannel::WaitingState, QHttpNetworkRequest::withCredentials(), QIODevice::write(), QHttpNetworkConnectionChannel::WritingState, and QHttpNetworkConnectionChannel::written.

Referenced by sendRequest().

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

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