mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:30:05 +00:00
26 lines
401 B
C++
26 lines
401 B
C++
#include <scwx/network/cpr.hpp>
|
|
|
|
namespace scwx
|
|
{
|
|
namespace network
|
|
{
|
|
namespace cpr
|
|
{
|
|
|
|
static const std::string logPrefix_ = "scwx::network::cpr";
|
|
|
|
static ::cpr::Header header_ {};
|
|
|
|
::cpr::Header GetHeader()
|
|
{
|
|
return header_;
|
|
}
|
|
|
|
void SetUserAgent(const std::string& userAgent)
|
|
{
|
|
header_.insert_or_assign("User-Agent", userAgent);
|
|
}
|
|
|
|
} // namespace cpr
|
|
} // namespace network
|
|
} // namespace scwx
|