1 #ifndef NETWORKHTTPREPLY_H
2 #define NETWORKHTTPREPLY_H
8 #include "httprequest.h"
10 class NetworkHttpReply : public HttpReply {
14 NetworkHttpReply(const HttpRequest &req, Http &http);
16 int statusCode() const;
17 QString reasonPhrase() const;
18 const QList<QNetworkReply::RawHeaderPair> headers() const;
19 QByteArray header(const QByteArray &headerName) const;
20 QByteArray body() const;
24 void replyError(QNetworkReply::NetworkError);
25 void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
30 QString errorMessage();
36 QNetworkReply *networkReply;
37 QTimer *readTimeoutTimer;
42 #endif // NETWORKHTTPREPLY_H