Skip to content

Commit 528be9f

Browse files
authored
Add passthrough argument for proxies (#109)
1 parent 2e6ab9d commit 528be9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yarn_api_client/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def to_url(self, api_path=None):
5858
class BaseYarnAPI(object):
5959
response_class = Response
6060

61-
def __init__(self, service_endpoint=None, timeout=None, auth=None, verify=True):
61+
def __init__(self, service_endpoint=None, timeout=None, auth=None, verify=True, proxies=None):
6262
self.timeout = timeout
6363

6464
if service_endpoint:
@@ -69,6 +69,7 @@ def __init__(self, service_endpoint=None, timeout=None, auth=None, verify=True):
6969
self.session = requests.Session()
7070
self.session.auth = auth
7171
self.session.verify = verify
72+
self.session.proxies = proxies
7273

7374
def _validate_configuration(self):
7475
if not self.service_uri:

0 commit comments

Comments
 (0)