response.h
Go to the documentation of this file.
1 #ifndef HTTP_RESPONSE_H
2 #define HTTP_RESPONSE_H
3 
4 #include <QString>
5 #include <QJsonDocument>
6 #include <QJsonObject>
7 
8 namespace dnai {
9  namespace http {
10  struct Status {
11  int code;
12  QString message;
13  };
14  struct Response {
16  QJsonObject body;
17  operator QString() const;
18  };
19  }
20 }
21 
22 #endif // HTTP_RESPONSE_H
Definition: response.h:14
QString message
Definition: response.h:12
Status status
Definition: response.h:15
QJsonObject body
Definition: response.h:16
Definition: api.h:13
Definition: response.h:10
int code
Definition: response.h:11