aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-11 17:53:37 +0100
committerGravatar jesopo2019-09-11 17:53:37 +0100
commit51dc26d113339e55af9867d7b38d20da68e57a48 (patch)
treecdb1853cd8629501817c95575ac5158c0c3f6405 /src
parentrefactor utils.http.requests to support a Request object (diff)
signature
add `proxy` to Request objects
Diffstat (limited to 'src')
-rw-r--r--src/utils/http.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/http.py b/src/utils/http.py
index 4dfb450d..aa18747b 100644
--- a/src/utils/http.py
+++ b/src/utils/http.py
@@ -62,7 +62,7 @@ class Request(object):
detect_encoding: bool=True,
parser: str="lxml", fallback_encoding="iso-8859-1",
- content_type: str=None,
+ content_type: str=None, proxy: str=None,
**kwargs):
self.set_url(url)
@@ -80,6 +80,7 @@ class Request(object):
self.parser = parser
self.fallback_encoding = fallback_encoding
self.content_type = content_type
+ self.proxy = proxy
if kwargs:
if method == "POST":