mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	* HTTP.{cpp,h} : add add_header() variant with std::string
This commit is contained in:
		
							parent
							
								
									f245feb0b0
								
							
						
					
					
						commit
						a76d8f0f9f
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								HTTP.h
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								HTTP.h
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -57,6 +57,7 @@ namespace http {
 | 
			
		|||
  struct HTTPMsg {
 | 
			
		||||
    std::map<std::string, std::string> headers;
 | 
			
		||||
 | 
			
		||||
    void add_header(const char *name, std::string & value, bool replace = false);
 | 
			
		||||
    void add_header(const char *name, const char *value, bool replace = false);
 | 
			
		||||
    void del_header(const char *name);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue