HTTP layer ready for API calls.
This commit is contained in:
parent
202b74367a
commit
3f1eefb131
8 changed files with 198 additions and 11 deletions
|
@ -39,14 +39,14 @@ namespace xmrig {
|
|||
class HttpRequest
|
||||
{
|
||||
public:
|
||||
inline HttpRequest(uint64_t id) : m_id(id) {}
|
||||
inline HttpRequest(uint64_t id) : method(0), m_id(id) {}
|
||||
|
||||
inline uint64_t id() const { return m_id; }
|
||||
|
||||
std::string url;
|
||||
std::string method;
|
||||
std::stringstream body;
|
||||
int method;
|
||||
std::map<const std::string, const std::string> headers;
|
||||
std::string body;
|
||||
std::string url;
|
||||
|
||||
private:
|
||||
const uint64_t m_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue