Debian Codegraph @

src/librssguard/network-web/httpresponse.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.
2
3 #include "network-web/httpresponse.h"
4
5 HttpResponse::HttpResponse() : m_body(QString()) {}
6
7 QString HttpResponse::body() const {
8 return m_body;
9 }
10
11 QList<HttpHeader> HttpResponse::headers() const {
12 return m_headers;
13 }
14
15 void HttpResponse::appendHeader(const QString& name, const QString& value) {
16 HttpHeader head;
17
18 head.first = name;
19 head.second = value;
20
21 m_headers.append(head);
22 }
23
24 void HttpResponse::setBody(const QString& body) {
25 m_body = body;
26 }