Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ddafd13

Browse filesBrowse files
author
Alexander Shchepetilnikov
committed
Exposing some of the requests settings
1 parent 8f4ba51 commit ddafd13
Copy full SHA for ddafd13

File tree

1 file changed

+9
-1
lines changed
Filter options

1 file changed

+9
-1
lines changed

‎zencoder/core.py

Copy file name to clipboardExpand all lines: zencoder/core.py
+9-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.