42 #ifndef QHTTPNETWORKREPLY_H 43 #define QHTTPNETWORKREPLY_H 55 #include <qplatformdefs.h> 58 #ifndef QT_NO_COMPRESS 60 static const unsigned char gz_magic[2] = {0x1f, 0x8b};
62 #define HEAD_CRC 0x02 // bit 1 set: header CRC present 63 #define EXTRA_FIELD 0x04 // bit 2 set: extra field present 64 #define ORIG_NAME 0x08 // bit 3 set: original file name present 65 #define COMMENT 0x10 // bit 4 set: file comment present 66 #define RESERVED 0xE0 // bits 5..7: reserved 70 #include <QtNetwork/qtcpsocket.h> 72 #include <QtNetwork/qsslsocket.h> 73 #include <QtNetwork/qsslerror.h> 75 #include <QtNetwork/qnetworkrequest.h> 76 #include <QtNetwork/qnetworkreply.h> 79 #include <private/qobject_p.h> 80 #include <private/qhttpnetworkheader_p.h> 81 #include <private/qhttpnetworkrequest_p.h> 82 #include <private/qauthenticator_p.h> 83 #include <private/qringbuffer_p.h> 84 #include <private/qbytedata_p.h> 118 int statusCode()
const;
119 void setStatusCode(
int code);
126 qint64 bytesAvailable()
const;
127 qint64 bytesAvailableNextBlock()
const;
128 bool readAnyAvailable()
const;
133 void setDownstreamLimited(
bool t);
134 void setReadBufferSize(
qint64 size);
136 bool supportsUserProvidedDownloadBuffer();
137 void setUserProvidedDownloadBuffer(
char*);
138 char* userProvidedDownloadBuffer();
140 bool isFinished()
const;
142 bool isPipeliningUsed()
const;
146 #ifndef QT_NO_OPENSSL 149 void ignoreSslErrors();
160 void headerChanged();
162 void dataReadProgress(
int done,
int total);
165 #ifndef QT_NO_NETWORKPROXY 189 bool findChallenge(
bool forProxy,
QByteArray &challenge)
const;
192 void clearHttpLayerInformation();
198 void appendUncompressedReplyData(
QByteArray &qba);
202 bool shouldEmitSignals();
203 bool expectContent();
206 qint64 bytesAvailable()
const;
208 bool isConnectionCloseEnabled();
210 #ifndef QT_NO_COMPRESS 211 bool gzipCheckHeader(
QByteArray &content,
int &pos);
213 void gunzipBodyPartiallyEnd();
215 void removeAutoDecompressHeader();
247 #ifndef QT_NO_COMPRESS 272 #endif // QHTTPNETWORKREPLY_H
#define QT_END_NAMESPACE
This macro expands to.
bool forceConnectionCloseEnabled
The QByteArray class provides an array of bytes.
static void clear(QVariant::Private *d)
QByteArray compressedData
NetworkError
Indicates all possible error conditions found during the processing of the request.
static LibLoadStatus status
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
bool chunkedTransferEncoding
bool connectionCloseEnabled
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QHttpNetworkRequest request
static const char * data(const QByteArray &arr)
The QAuthenticator class provides an authentication object.
static const unsigned char gz_magic[2]
QPointer< QHttpNetworkConnectionChannel > connectionChannel
#define Q_AUTOTEST_EXPORT
char * userProvidedDownloadBuffer
The QSslConfiguration class holds the configuration and state of an SSL connection.
#define Q_DECLARE_PRIVATE(Class)
QPointer< QHttpNetworkConnection > connection
The QAbstractSocket class provides the base functionality common to all socket types.
The QList class is a template class that provides lists.
QByteDataBuffer responseData