rssguard/src/librssguard/network-web/httpresponse.h
2024-03-21 09:53:01 +01:00

26 lines
564 B
C++

// For license of this file, see <project-root-folder>/LICENSE.md.
#ifndef HTTPRESPONSE_H
#define HTTPRESPONSE_H
#include <QList>
#include <QPair>
typedef QPair<QString, QString> HttpHeader;
class RSSGUARD_DLLSPEC HttpResponse {
public:
explicit HttpResponse();
QString body() const;
void setBody(const QString& body);
QList<HttpHeader> headers() const;
void appendHeader(const QString& name, const QString& value);
private:
QList<HttpHeader> m_headers;
QString m_body;
};
#endif // HTTPRESPONSE_H