Added ability to check if the downloader is being proxied or not
This commit is contained in:
		
							parent
							
								
									56897ceded
								
							
						
					
					
						commit
						8dd403a098
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -20,6 +20,8 @@ namespace HTTP{
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  bool Downloader::isProxied() const{return proxied;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /// Returns a reference to the internal HTTP::Parser body element
 | 
					  /// Returns a reference to the internal HTTP::Parser body element
 | 
				
			||||||
  std::string &Downloader::data(){return H.body;}
 | 
					  std::string &Downloader::data(){return H.body;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -29,6 +29,7 @@ namespace HTTP{
 | 
				
			||||||
    Parser &getHTTP();
 | 
					    Parser &getHTTP();
 | 
				
			||||||
    Socket::Connection &getSocket();
 | 
					    Socket::Connection &getSocket();
 | 
				
			||||||
    uint32_t retryCount, dataTimeout;
 | 
					    uint32_t retryCount, dataTimeout;
 | 
				
			||||||
 | 
					    bool isProxied() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  private:
 | 
					  private:
 | 
				
			||||||
    std::map<std::string, std::string> extraHeaders; ///< Holds extra headers to sent with request
 | 
					    std::map<std::string, std::string> extraHeaders; ///< Holds extra headers to sent with request
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue