Repository: libcloud
Updated Branches:
  refs/heads/trunk 06707ef0c -> bef5399b5


Add missing "set_http_proxy" method to the base Connection class


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a3a09590
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a3a09590
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a3a09590

Branch: refs/heads/trunk
Commit: a3a0959001d63e90a97bcc04916ec7e68fe44e43
Parents: 06707ef
Author: Tomaz Muraus <[email protected]>
Authored: Thu Aug 21 18:00:24 2014 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Thu Aug 21 18:00:24 2014 +0200

----------------------------------------------------------------------
 libcloud/common/base.py | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/a3a09590/libcloud/common/base.py
----------------------------------------------------------------------
diff --git a/libcloud/common/base.py b/libcloud/common/base.py
index 07647b2..78a9a13 100644
--- a/libcloud/common/base.py
+++ b/libcloud/common/base.py
@@ -483,6 +483,15 @@ class Connection(object):
 
         self.proxy_url = proxy_url
 
+    def set_http_proxy(self, proxy_url):
+        """
+        Set an HTTP proxy which will be used for all the outgoing HTTP 
requests.
+
+        :param proxy_url: Proxy URL.
+        :type proxy_url: ``str``
+        """
+        self.proxy_url = proxy_url
+
     def set_context(self, context):
         if not isinstance(context, dict):
             raise TypeError('context needs to be a dictionary')

Reply via email to