mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-11-04 03:00:06 +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
 |