equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtNetwork module of the Qt Toolkit. |
7 ** This file is part of the QtNetwork module of the Qt Toolkit. |
8 ** |
8 ** |
84 #include <private/qbytedata_p.h> |
84 #include <private/qbytedata_p.h> |
85 |
85 |
86 QT_BEGIN_NAMESPACE |
86 QT_BEGIN_NAMESPACE |
87 |
87 |
88 class QHttpNetworkConnection; |
88 class QHttpNetworkConnection; |
|
89 class QHttpNetworkConnectionChannel; |
89 class QHttpNetworkRequest; |
90 class QHttpNetworkRequest; |
90 class QHttpNetworkConnectionPrivate; |
91 class QHttpNetworkConnectionPrivate; |
91 class QHttpNetworkReplyPrivate; |
92 class QHttpNetworkReplyPrivate; |
92 class Q_AUTOTEST_EXPORT QHttpNetworkReply : public QObject, public QHttpNetworkHeader |
93 class Q_AUTOTEST_EXPORT QHttpNetworkReply : public QObject, public QHttpNetworkHeader |
93 { |
94 { |
123 QString reasonPhrase() const; |
124 QString reasonPhrase() const; |
124 |
125 |
125 qint64 bytesAvailable() const; |
126 qint64 bytesAvailable() const; |
126 qint64 bytesAvailableNextBlock() const; |
127 qint64 bytesAvailableNextBlock() const; |
127 QByteArray readAny(); |
128 QByteArray readAny(); |
|
129 void setDownstreamLimited(bool t); |
128 |
130 |
129 bool isFinished() const; |
131 bool isFinished() const; |
130 |
132 |
131 bool isPipeliningUsed() const; |
133 bool isPipeliningUsed() const; |
132 |
134 |
215 bool connectionCloseEnabled; |
217 bool connectionCloseEnabled; |
216 bool forceConnectionCloseEnabled; |
218 bool forceConnectionCloseEnabled; |
217 qint64 currentChunkSize; |
219 qint64 currentChunkSize; |
218 qint64 currentChunkRead; |
220 qint64 currentChunkRead; |
219 QPointer<QHttpNetworkConnection> connection; |
221 QPointer<QHttpNetworkConnection> connection; |
|
222 QPointer<QHttpNetworkConnectionChannel> connectionChannel; |
220 bool initInflate; |
223 bool initInflate; |
221 bool streamEnd; |
224 bool streamEnd; |
222 #ifndef QT_NO_COMPRESS |
225 #ifndef QT_NO_COMPRESS |
223 z_stream inflateStrm; |
226 z_stream inflateStrm; |
224 #endif |
227 #endif |
227 QByteDataBuffer responseData; // uncompressed body |
230 QByteDataBuffer responseData; // uncompressed body |
228 QByteArray compressedData; // compressed body (temporary) |
231 QByteArray compressedData; // compressed body (temporary) |
229 bool requestIsPrepared; |
232 bool requestIsPrepared; |
230 |
233 |
231 bool pipeliningUsed; |
234 bool pipeliningUsed; |
|
235 bool downstreamLimited; |
232 }; |
236 }; |
233 |
237 |
234 |
238 |
235 |
239 |
236 |
240 |