| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef HTTPRESPONSE_H |
| 4 | #define HTTPRESPONSE_H |
| 5 | |
| 6 | #include <QList> |
| 7 | #include <QPair> |
| 8 | |
| 9 | typedef QPair<QString, QString> HttpHeader; |
| 10 | |
| 11 | class RSSGUARD_DLLSPEC HttpResponse { |
| 12 | public: |
| 13 | explicit HttpResponse(); |
| 14 | |
| 15 | QString body() const; |
| 16 | void setBody(const QString& body); |
| 17 | QList<HttpHeader> headers() const; |
| 18 | |
| 19 | void appendHeader(const QString& name, const QString& value); |
| 20 | |
| 21 | private: |
| 22 | QList<HttpHeader> m_headers; |
| 23 | QString m_body; |
| 24 | }; |
| 25 | |
| 26 | #endif // HTTPRESPONSE_H |