comparison Core/HttpClient.h @ 1273:88010d8e12cf

Support of HTTP proxy
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Jan 2015 16:08:58 +0100
parents b17b6bd59747
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1272:7442097b41c9 1273:88010d8e12cf
51 HttpMethod method_; 51 HttpMethod method_;
52 HttpStatus lastStatus_; 52 HttpStatus lastStatus_;
53 std::string postData_; 53 std::string postData_;
54 bool isVerbose_; 54 bool isVerbose_;
55 long timeout_; 55 long timeout_;
56 std::string proxy_;
56 57
57 void Setup(); 58 void Setup();
58 59
59 void operator= (const HttpClient&); // Forbidden 60 void operator= (const HttpClient&); // Forbidden
60 61
132 } 133 }
133 134
134 void SetCredentials(const char* username, 135 void SetCredentials(const char* username,
135 const char* password); 136 const char* password);
136 137
138 void SetProxy(const std::string& proxy)
139 {
140 proxy_ = proxy;
141 }
142
137 static void GlobalInitialize(); 143 static void GlobalInitialize();
138 144
139 static void GlobalFinalize(); 145 static void GlobalFinalize();
140 }; 146 };
141 } 147 }