summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-02-07 13:46:08 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-02-07 13:46:08 +0000
commit997a0c29d151e778444b3c796555e415a51b8c41 (patch)
treee81b7d556a8aa2a4b28d7d849f171695fce5a891 /src/AbstractCommand.h
parent1b854afe44b9706ee45cf667fd2076de1a3a6832 (diff)
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed the default value of --proxy-method option from 'tunnel' to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method option. * src/AbstractCommand.cc * src/AbstractCommand.h * src/FtpInitiateConnectionCommand.cc * src/HttpDownloadCommand.cc * src/HttpInitiateConnectionCommand.cc * src/HttpInitiateConnectionCommand.h * src/OptionHandlerFactory.cc
Diffstat (limited to 'src/AbstractCommand.h')
-rw-r--r--src/AbstractCommand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/AbstractCommand.h b/src/AbstractCommand.h
index 6d3d1f70..a4570c95 100644
--- a/src/AbstractCommand.h
+++ b/src/AbstractCommand.h
@@ -112,6 +112,11 @@ protected:
* If no valid proxy is defined, then returns SharedHandle<Request>().
*/
SharedHandle<Request> createProxyRequest() const;
+
+
+ // Returns proxy method for given protocol. Either V_GET or V_TUNNEL
+ // is returned. For HTTPS, always returns V_TUNNEL.
+ const std::string& resolveProxyMethod(const std::string& protocol) const;
private:
bool checkSocketIsReadable;
bool checkSocketIsWritable;