Change HttpResponse creation method.
This commit is contained in:
parent
01ad6bf2d9
commit
9daa5874f5
9 changed files with 55 additions and 18 deletions
|
@ -39,10 +39,17 @@ namespace xmrig {
|
|||
class HttpRequest
|
||||
{
|
||||
public:
|
||||
inline HttpRequest(uint64_t id) : m_id(id) {}
|
||||
|
||||
inline uint64_t id() const { return m_id; }
|
||||
|
||||
std::string url;
|
||||
std::string method;
|
||||
std::stringstream body;
|
||||
std::map<const std::string, const std::string> headers;
|
||||
|
||||
private:
|
||||
const uint64_t m_id;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue