diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-06-26 13:40:57 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-06-29 09:13:25 (GMT) |
commit | 9daf22e645106d09b32a60e5cfe65672e6b64f91 (patch) | |
tree | 0defdd7e4b795c4f763ea6f3ca154fbd052632a6 /src/network/access/qhttpnetworkreply_p.h | |
parent | dae562ea1bcc2e65d14f6a4404b7544295f1a910 (diff) | |
download | Qt-9daf22e645106d09b32a60e5cfe65672e6b64f91.zip Qt-9daf22e645106d09b32a60e5cfe65672e6b64f91.tar.gz Qt-9daf22e645106d09b32a60e5cfe65672e6b64f91.tar.bz2 |
QNAM HTTP Code: Properly use the QRingBuffer for some kind of data.
Use the QRingBuffer properly when reading known-size, non-chunked,
non-compressed data from HTTP.
Reviewed-by: Thiago Macieira
Diffstat (limited to 'src/network/access/qhttpnetworkreply_p.h')
-rw-r--r-- | src/network/access/qhttpnetworkreply_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/access/qhttpnetworkreply_p.h b/src/network/access/qhttpnetworkreply_p.h index 69c9158..26e1047 100644 --- a/src/network/access/qhttpnetworkreply_p.h +++ b/src/network/access/qhttpnetworkreply_p.h @@ -160,6 +160,7 @@ public: qint64 readHeader(QAbstractSocket *socket); void parseHeader(const QByteArray &header); qint64 readBody(QAbstractSocket *socket, QIODevice *out); + qint64 readBodyFast(QAbstractSocket *socket, QRingBuffer *rb); bool findChallenge(bool forProxy, QByteArray &challenge) const; QAuthenticatorPrivate::Method authenticationMethod(bool isProxy) const; void clear(); |