Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
29
libs/platform/http_uploader.hpp
Normal file
29
libs/platform/http_uploader.hpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include "platform/http_payload.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace platform
|
||||
{
|
||||
class HttpUploader
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
int32_t m_httpCode = 0;
|
||||
std::string m_description;
|
||||
};
|
||||
|
||||
HttpUploader() = delete;
|
||||
explicit HttpUploader(HttpPayload const & payload) : m_payload(payload) {}
|
||||
HttpPayload const & GetPayload() const { return m_payload; }
|
||||
Result Upload() const;
|
||||
|
||||
private:
|
||||
HttpPayload const m_payload;
|
||||
};
|
||||
} // namespace platform
|
||||
Loading…
Add table
Add a link
Reference in a new issue