Skip to content

Commit ddafd13

Browse files
author
Alexander Shchepetilnikov
committed
Exposing some of the requests settings
1 parent 8f4ba51 commit ddafd13

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

zencoder/core.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def __init__(self,
3737
resource_name=None,
3838
timeout=None,
3939
test=False,
40-
version=None):
40+
version=None,
41+
proxies=None,
42+
cert=None,
43+
http_timeout=None):
4144

4245
self.base_url = base_url
4346

@@ -46,6 +49,11 @@ def __init__(self,
4649

4750
self.http = requests.Session()
4851

52+
# set requests additional settings. `None` is default for all of these settings
53+
self.http.timeout = http_timeout
54+
self.http.proxies = proxies
55+
self.http.cert = cert
56+
4957
self.api_key = api_key
5058
self.test = test
5159
self.version = version

0 commit comments

Comments
 (0)