42 #ifndef QHTTPNETWORKCONNECTION_H 43 #define QHTTPNETWORKCONNECTION_H 55 #include <QtNetwork/qnetworkrequest.h> 56 #include <QtNetwork/qnetworkreply.h> 57 #include <QtNetwork/qabstractsocket.h> 58 #include <QtNetwork/qnetworksession.h> 60 #include <private/qobject_p.h> 65 #include <private/qhttpnetworkheader_p.h> 66 #include <private/qhttpnetworkrequest_p.h> 67 #include <private/qhttpnetworkreply_p.h> 69 #include <private/qhttpnetworkconnectionchannel_p.h> 74 # include <QtNetwork/qsslsocket.h> 75 # include <QtNetwork/qsslerror.h> 77 # include <QtNetwork/qtcpsocket.h> 92 #ifndef QT_NO_BEARERMANAGEMENT 109 #ifndef QT_NO_NETWORKPROXY 121 #ifndef QT_NO_OPENSSL 123 void ignoreSslErrors(
int channel = -1);
160 void pauseConnection();
161 void resumeConnection();
164 enum { ChunkSize = 4096 };
168 QHttpNetworkReply *queueRequest(
const QHttpNetworkRequest &request);
169 void requeueRequest(
const HttpMessagePair &pair);
171 void prepareRequest(HttpMessagePair &request);
172 QHttpNetworkRequest predictNextRequest();
178 void readMoreLater(QHttpNetworkReply *reply);
180 void copyCredentials(
int fromChannel,
QAuthenticator *auth,
bool isProxy);
183 void _q_startNextRequest();
185 void createAuthorization(
QAbstractSocket *socket, QHttpNetworkRequest &request);
190 #ifndef QT_NO_COMPRESS 191 bool expand(
QAbstractSocket *socket, QHttpNetworkReply *reply,
bool dataComplete);
193 void removeReply(QHttpNetworkReply *reply);
202 qint64 uncompressedBytesAvailable(
const QHttpNetworkReply &reply)
const;
203 qint64 uncompressedBytesAvailableNextBlock(
const QHttpNetworkReply &reply)
const;
207 bool handleAuthenticateChallenge(
QAbstractSocket *socket, QHttpNetworkReply *reply,
bool isProxy,
bool &resend);
209 #ifndef QT_NO_NETWORKPROXY 218 #ifndef QT_NO_BEARERMANAGEMENT 222 friend class QHttpNetworkConnectionChannel;
#define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
NetworkError
Indicates all possible error conditions found during the processing of the request.
QList< HttpMessagePair > highPriorityQueue
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
QHttpNetworkConnectionChannel * channels
static const int defaultRePipelineLength
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static const int defaultPipelineLength
QList< HttpMessagePair > lowPriorityQueue
The QAuthenticator class provides an authentication object.
#define Q_DECLARE_PUBLIC(Class)
QSharedPointer< QNetworkSession > networkSession
#define Q_AUTOTEST_EXPORT
The QSslConfiguration class holds the configuration and state of an SSL connection.
#define Q_DECLARE_PRIVATE(Class)
static const int defaultChannelCount
The QAbstractSocket class provides the base functionality common to all socket types.
QNetworkProxy networkProxy