]> git.sur5r.net Git - minitube/blob - lib/http/src/httpreply.cpp
New upstream version 3.4
[minitube] / lib / http / src / httpreply.cpp
1 #include "httpreply.h"
2
3 HttpReply::HttpReply(QObject *parent) : QObject(parent) {}
4
5 int HttpReply::isSuccessful() const {
6     return statusCode() >= 200 && statusCode() < 300;
7 }
8
9 QString HttpReply::reasonPhrase() const {
10     return QString();
11 }
12
13 const QList<QNetworkReply::RawHeaderPair> HttpReply::headers() const {
14     return QList<QNetworkReply::RawHeaderPair>();
15 }
16
17 QByteArray HttpReply::header(const QByteArray &headerName) const {
18     Q_UNUSED(headerName);
19     return QByteArray();
20 }