-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhttprequest.hpp
More file actions
42 lines (30 loc) · 828 Bytes
/
httprequest.hpp
File metadata and controls
42 lines (30 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef BIDSTACK_HTTP_REQUEST_HPP
#define BIDSTACK_HTTP_REQUEST_HPP
#include <QObject>
#include <QUrl>
#include <QMap>
#include "httpbody.hpp"
namespace Bidstack {
namespace Http {
class HttpRequest : public QObject {
Q_OBJECT
public:
HttpRequest(QObject *parent = 0);
public:
void setHeaders(QMap<QString, QString> headers);
QMap<QString, QString> headers();
void setMethod(QString method);
QString method();
void setUrl(QUrl url);
QUrl url();
void setBody(HttpBody* body);
HttpBody* body();
private:
QMap<QString, QString> m_headers;
QString m_method;
QUrl m_url;
HttpBody* m_body;
};
};
};
#endif