![]() |
Qt 6.x
The Qt SDK
|
#include <qhttpnetworkreply_p.h>
Public Types | |
enum | ReplyState { NothingDoneState , ReadingStatusState , ReadingHeaderState , ReadingDataState , AllDoneState , SPDYSYNSent , SPDYUploading , SPDYHalfClosed , SPDYClosed , Aborted } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Additional Inherited Members | |
![]() | |
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 167 of file qhttpnetworkreply_p.h.
Enumerator | |
---|---|
NothingDoneState | |
ReadingStatusState | |
ReadingHeaderState | |
ReadingDataState | |
AllDoneState | |
SPDYSYNSent | |
SPDYUploading | |
SPDYHalfClosed | |
SPDYClosed | |
Aborted |
Definition at line 200 of file qhttpnetworkreply_p.h.
Definition at line 302 of file qhttpnetworkreply.cpp.
References connectionCloseEnabled, and QUrl::scheme().
|
default |
void QHttpNetworkReplyPrivate::appendHeaderField | ( | const QByteArray & | name, |
const QByteArray & | data | ||
) |
Definition at line 518 of file qhttpnetworkreply.cpp.
References QHttpHeaderParser::appendHeaderField(), and QHttpNetworkHeaderPrivate::parser.
qint64 QHttpNetworkReplyPrivate::bytesAvailable | ( | ) | const |
Definition at line 351 of file qhttpnetworkreply.cpp.
References fragment, ReadingDataState, QByteArray::size(), and state.
Referenced by getChunkSize().
void QHttpNetworkReplyPrivate::clear | ( | ) |
Definition at line 342 of file qhttpnetworkreply.cpp.
References autoDecompress, clearHttpLayerInformation(), connection, and connectionChannel.
Referenced by QHttpProtocolHandler::sendRequest().
void QHttpNetworkReplyPrivate::clearHttpLayerInformation | ( | ) |
Definition at line 328 of file qhttpnetworkreply.cpp.
References bodyLength, QHttpHeaderParser::clear(), connectionCloseEnabled, contentRead, currentChunkRead, currentChunkSize, lastChunkRead, NothingDoneState, QHttpNetworkHeaderPrivate::parser, state, and totalProgress.
Referenced by QHttpProtocolHandler::_q_receiveReply(), and clear().
void QHttpNetworkReplyPrivate::eraseData | ( | ) |
Definition at line 774 of file qhttpnetworkreply.cpp.
References QByteDataBuffer::clear(), and responseData.
bool QHttpNetworkReplyPrivate::expectContent | ( | ) |
Definition at line 754 of file qhttpnetworkreply.cpp.
References bodyLength, QHttpNetworkHeaderPrivate::contentLength(), QHttpHeaderParser::getStatusCode(), QHttpNetworkRequest::Head, QHttpNetworkRequest::operation(), QHttpNetworkHeaderPrivate::parser, and request.
Referenced by QHttpProtocolHandler::_q_receiveReply().
bool QHttpNetworkReplyPrivate::findChallenge | ( | bool | forProxy, |
QByteArray & | challenge | ||
) | const |
Definition at line 381 of file qhttpnetworkreply.cpp.
References QList< T >::at(), QByteArray::clear(), header(), QHttpNetworkHeaderPrivate::headerFieldValues(), i, QByteArray::isEmpty(), line, QList< T >::size(), QString::startsWith(), and QString::toLower().
qint64 QHttpNetworkReplyPrivate::getChunkSize | ( | QAbstractSocket * | in, |
qint64 * | chunkSize | ||
) |
Definition at line 699 of file qhttpnetworkreply.cpp.
References QByteArray::append(), bytesAvailable(), QAbstractSocket::bytesAvailable(), QByteArray::clear(), QByteArray::endsWith(), fragment, QByteArray::indexOf(), QByteArray::mid(), ok, QIODevice::peek(), QIODevice::read(), QByteArray::size(), socket, QByteArray::toLong(), and QByteArray::trimmed().
Referenced by readReplyBodyChunked().
bool QHttpNetworkReplyPrivate::isChunked | ( | ) |
Definition at line 523 of file qhttpnetworkreply.cpp.
References chunkedTransferEncoding.
Referenced by QHttpProtocolHandler::_q_receiveReply(), and readBody().
bool QHttpNetworkReplyPrivate::isCompressed | ( | ) | const |
Definition at line 356 of file qhttpnetworkreply.cpp.
References QHttpNetworkHeaderPrivate::headerField(), and QDecompressHelper::isSupportedEncoding().
Referenced by QHttpProtocolHandler::_q_receiveReply().
bool QHttpNetworkReplyPrivate::isConnectionCloseEnabled | ( | ) |
Definition at line 528 of file qhttpnetworkreply.cpp.
References connectionCloseEnabled, and forceConnectionCloseEnabled.
bool QHttpNetworkReplyPrivate::isRedirecting | ( | ) | const |
Definition at line 739 of file qhttpnetworkreply.cpp.
References QHttpHeaderParser::getStatusCode(), QHttpNetworkRequest::isFollowRedirects(), QHttpNetworkReply::isHttpRedirect(), QHttpNetworkHeaderPrivate::parser, and request.
void QHttpNetworkReplyPrivate::parseHeader | ( | const QByteArray & | header | ) |
Definition at line 513 of file qhttpnetworkreply.cpp.
References header(), QHttpHeaderParser::parseHeaders(), and QHttpNetworkHeaderPrivate::parser.
Referenced by readHeader().
bool QHttpNetworkReplyPrivate::parseStatus | ( | const QByteArray & | status | ) |
Definition at line 446 of file qhttpnetworkreply.cpp.
References QHttpNetworkHeaderPrivate::parser, and QHttpHeaderParser::parseStatus().
Referenced by readStatus().
qint64 QHttpNetworkReplyPrivate::readBody | ( | QAbstractSocket * | socket, |
QByteDataBuffer * | out | ||
) |
Definition at line 584 of file qhttpnetworkreply.cpp.
References AllDoneState, bodyLength, QAbstractSocket::bytesAvailable(), contentRead, isChunked(), out, readReplyBodyChunked(), readReplyBodyRaw(), socket, and state.
Referenced by QHttpProtocolHandler::_q_receiveReply().
qint64 QHttpNetworkReplyPrivate::readBodyFast | ( | QAbstractSocket * | socket, |
QByteDataBuffer * | rb | ||
) |
Definition at line 554 of file qhttpnetworkreply.cpp.
References AllDoneState, QByteDataBuffer::append(), bodyLength, QAbstractSocket::bytesAvailable(), QByteArray::clear(), contentRead, QByteArray::data(), qMin(), QIODevice::read(), readBufferMaxSize, QByteArray::resize(), socket, and state.
Referenced by QHttpProtocolHandler::_q_receiveReply().
qint64 QHttpNetworkReplyPrivate::readBodyVeryFast | ( | QAbstractSocket * | socket, |
char * | b | ||
) |
Definition at line 535 of file qhttpnetworkreply.cpp.
References AllDoneState, bodyLength, contentRead, QIODevice::read(), socket, and state.
Referenced by QHttpProtocolHandler::_q_receiveReply().
qint64 QHttpNetworkReplyPrivate::readHeader | ( | QAbstractSocket * | socket | ) |
Definition at line 451 of file qhttpnetworkreply.cpp.
References QByteArray::append(), bodyLength, chunkedTransferEncoding, QByteArray::clear(), connectionCloseEnabled, QByteArray::contains(), QHttpNetworkHeaderPrivate::contentLength(), QByteArray::endsWith(), fragment, QHttpHeaderParser::getMajorVersion(), QHttpHeaderParser::getMinorVersion(), QHttpNetworkHeaderPrivate::headerField(), QByteArray::isEmpty(), parseHeader(), QHttpNetworkHeaderPrivate::parser, QIODevice::read(), ReadingDataState, QByteArray::reserve(), QByteArray::size(), socket, state, and QByteArray::toLower().
Referenced by QHttpProtocolHandler::_q_receiveReply().
qint64 QHttpNetworkReplyPrivate::readReplyBodyChunked | ( | QAbstractSocket * | in, |
QByteDataBuffer * | out | ||
) |
Definition at line 637 of file qhttpnetworkreply.cpp.
References AllDoneState, QAbstractSocket::bytesAvailable(), currentChunkRead, currentChunkSize, forceConnectionCloseEnabled, getChunkSize(), lastChunkRead, out, QIODevice::read(), readBufferMaxSize, readReplyBodyRaw(), socket, and state.
Referenced by readBody().
qint64 QHttpNetworkReplyPrivate::readReplyBodyRaw | ( | QAbstractSocket * | in, |
QByteDataBuffer * | out, | ||
qint64 | size | ||
) |
Definition at line 604 of file qhttpnetworkreply.cpp.
References QAbstractSocket::bytesAvailable(), QByteArray::clear(), QByteArray::data(), out, Q_ASSERT, QIODevice::read(), readBufferMaxSize, QByteArray::resize(), QByteArray::size(), and socket.
Referenced by readBody(), and readReplyBodyChunked().
qint64 QHttpNetworkReplyPrivate::readStatus | ( | QAbstractSocket * | socket | ) |
Definition at line 397 of file qhttpnetworkreply.cpp.
References QByteArray::append(), QByteArray::clear(), QByteArray::endsWith(), fragment, QByteArray::isEmpty(), ok, parseStatus(), QIODevice::read(), ReadingHeaderState, QByteArray::reserve(), QByteArray::size(), socket, QByteArray::startsWith(), state, and QByteArray::truncate().
void QHttpNetworkReplyPrivate::removeAutoDecompressHeader | ( | ) |
Definition at line 367 of file qhttpnetworkreply.cpp.
References QHttpNetworkHeaderPrivate::contentLength(), QHttpHeaderParser::firstHeaderField(), QHttpNetworkHeaderPrivate::parser, removedContentLength, and QHttpHeaderParser::removeHeaderField().
Referenced by QHttpProtocolHandler::_q_receiveReply().
bool QHttpNetworkReplyPrivate::shouldEmitSignals | ( | ) |
Definition at line 747 of file qhttpnetworkreply.cpp.
References QHttpHeaderParser::getStatusCode(), and QHttpNetworkHeaderPrivate::parser.
Referenced by QHttpProtocolHandler::_q_receiveReply().
bool QHttpNetworkReplyPrivate::autoDecompress |
Definition at line 233 of file qhttpnetworkreply_p.h.
Referenced by QHttpProtocolHandler::_q_receiveReply(), clear(), and QHttpProtocolHandler::sendRequest().
qint64 QHttpNetworkReplyPrivate::bodyLength |
Definition at line 216 of file qhttpnetworkreply_p.h.
Referenced by QHttpProtocolHandler::_q_receiveReply(), clearHttpLayerInformation(), expectContent(), readBody(), readBodyFast(), readBodyVeryFast(), and readHeader().
bool QHttpNetworkReplyPrivate::chunkedTransferEncoding |
Definition at line 220 of file qhttpnetworkreply_p.h.
Referenced by isChunked(), and readHeader().
QPointer<QHttpNetworkConnection> QHttpNetworkReplyPrivate::connection |
Definition at line 229 of file qhttpnetworkreply_p.h.
Referenced by clear(), and QHttpProtocolHandler::sendRequest().
QPointer<QHttpNetworkConnectionChannel> QHttpNetworkReplyPrivate::connectionChannel |
Definition at line 230 of file qhttpnetworkreply_p.h.
Referenced by clear(), and QHttpProtocolHandler::sendRequest().
bool QHttpNetworkReplyPrivate::connectionCloseEnabled |
Definition at line 221 of file qhttpnetworkreply_p.h.
Referenced by QHttpNetworkReplyPrivate(), clearHttpLayerInformation(), isConnectionCloseEnabled(), and readHeader().
qint64 QHttpNetworkReplyPrivate::contentRead |
Definition at line 217 of file qhttpnetworkreply_p.h.
Referenced by clearHttpLayerInformation(), readBody(), readBodyFast(), and readBodyVeryFast().
qint64 QHttpNetworkReplyPrivate::currentChunkRead |
Definition at line 225 of file qhttpnetworkreply_p.h.
Referenced by clearHttpLayerInformation(), and readReplyBodyChunked().
qint64 QHttpNetworkReplyPrivate::currentChunkSize |
Definition at line 224 of file qhttpnetworkreply_p.h.
Referenced by clearHttpLayerInformation(), and readReplyBodyChunked().
bool QHttpNetworkReplyPrivate::downstreamLimited |
Definition at line 240 of file qhttpnetworkreply_p.h.
Referenced by QHttpProtocolHandler::_q_receiveReply().
QString QHttpNetworkReplyPrivate::errorString |
Definition at line 215 of file qhttpnetworkreply_p.h.
bool QHttpNetworkReplyPrivate::forceConnectionCloseEnabled |
Definition at line 222 of file qhttpnetworkreply_p.h.
Referenced by isConnectionCloseEnabled(), and readReplyBodyChunked().
QByteArray QHttpNetworkReplyPrivate::fragment |
Definition at line 219 of file qhttpnetworkreply_p.h.
Referenced by bytesAvailable(), getChunkSize(), readHeader(), and readStatus().
bool QHttpNetworkReplyPrivate::h2Used |
Definition at line 239 of file qhttpnetworkreply_p.h.
QNetworkReply::NetworkError QHttpNetworkReplyPrivate::httpErrorCode = QNetworkReply::NoError |
Definition at line 231 of file qhttpnetworkreply_p.h.
bool QHttpNetworkReplyPrivate::lastChunkRead |
Definition at line 223 of file qhttpnetworkreply_p.h.
Referenced by clearHttpLayerInformation(), and readReplyBodyChunked().
bool QHttpNetworkReplyPrivate::pipeliningUsed |
Definition at line 238 of file qhttpnetworkreply_p.h.
Referenced by QHttpProtocolHandler::sendRequest().
qint64 QHttpNetworkReplyPrivate::readBufferMaxSize |
Definition at line 226 of file qhttpnetworkreply_p.h.
Referenced by readBodyFast(), readReplyBodyChunked(), and readReplyBodyRaw().
QUrl QHttpNetworkReplyPrivate::redirectUrl |
Definition at line 243 of file qhttpnetworkreply_p.h.
qint64 QHttpNetworkReplyPrivate::removedContentLength |
Definition at line 228 of file qhttpnetworkreply_p.h.
Referenced by removeAutoDecompressHeader().
QHttpNetworkRequest QHttpNetworkReplyPrivate::request |
Definition at line 213 of file qhttpnetworkreply_p.h.
Referenced by expectContent(), and isRedirecting().
bool QHttpNetworkReplyPrivate::requestIsPrepared |
Definition at line 236 of file qhttpnetworkreply_p.h.
QByteDataBuffer QHttpNetworkReplyPrivate::responseData |
Definition at line 235 of file qhttpnetworkreply_p.h.
Referenced by QHttpProtocolHandler::_q_receiveReply(), and eraseData().
bool QHttpNetworkReplyPrivate::ssl |
Definition at line 214 of file qhttpnetworkreply_p.h.
enum QHttpNetworkReplyPrivate::ReplyState QHttpNetworkReplyPrivate::state |
qint64 QHttpNetworkReplyPrivate::totallyUploadedData |
Definition at line 227 of file qhttpnetworkreply_p.h.
qint64 QHttpNetworkReplyPrivate::totalProgress |
Definition at line 218 of file qhttpnetworkreply_p.h.
Referenced by QHttpProtocolHandler::_q_receiveReply(), and clearHttpLayerInformation().
char* QHttpNetworkReplyPrivate::userProvidedDownloadBuffer |
Definition at line 242 of file qhttpnetworkreply_p.h.
Referenced by QHttpProtocolHandler::_q_receiveReply().