mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 13:40:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			340 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			340 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <scwx/network/cpr.hpp>
 | |
| 
 | |
| namespace scwx
 | |
| {
 | |
| namespace network
 | |
| {
 | |
| namespace 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
 | 
