-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequest.h
More file actions
32 lines (25 loc) · 791 Bytes
/
Request.h
File metadata and controls
32 lines (25 loc) · 791 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
#pragma once
#include <string>
#include <vector>
class CRequest {
public:
CRequest(const std::wstring& method, const std::wstring& url, const std::wstring& data, const std::vector<std::pair<std::wstring, std::wstring>>& headers)
: method_(method), url_(url), data_(data), headers_(headers) {}
const std::wstring& GetMethod() const {
return method_;
}
const std::wstring& GetUrl() const {
return url_;
}
const std::wstring& GetData() const {
return data_;
}
const std::vector<std::pair<std::wstring, std::wstring>>& GetHeaders() const {
return headers_;
}
private:
std::wstring method_;
std::wstring url_;
std::wstring data_;
std::vector<std::pair<std::wstring, std::wstring>> headers_;
};