Added proxy headers option for urllib3 (#2467)

* adding headers option to pass in rest client

* running ensure uptodate
This commit is contained in:
Gaurav Yadav
2019-03-22 08:52:10 +05:30
committed by William Cheng
parent d839af5b1e
commit ee75366051
8 changed files with 13 additions and 0 deletions

View File

@@ -98,6 +98,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
# Proxy URL
self.proxy = None
# Proxy headers
self.proxy_headers = None
# Safe chars for path_param
self.safe_chars_for_path_param = ''
# Adding retries to override urllib3 default value 3

View File

@@ -92,6 +92,7 @@ class RESTClientObject(object):
cert_file=configuration.cert_file,
key_file=configuration.key_file,
proxy_url=configuration.proxy,
proxy_headers=configuration.proxy_headers,
**addition_pool_args
)
else: