diff options
| author | 2019-09-11 17:53:37 +0100 | |
|---|---|---|
| committer | 2019-09-11 17:53:37 +0100 | |
| commit | 51dc26d113339e55af9867d7b38d20da68e57a48 (patch) | |
| tree | cdb1853cd8629501817c95575ac5158c0c3f6405 /src/utils/http.py | |
| parent | refactor utils.http.requests to support a Request object (diff) | |
| signature | ||
add `proxy` to Request objects
Diffstat (limited to 'src/utils/http.py')
| -rw-r--r-- | src/utils/http.py | 3 |
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": |
