add proxy to Request objects

This commit is contained in:
jesopo 2019-09-11 17:53:37 +01:00
parent 4a97c9eb0d
commit 51dc26d113

View file

@ -62,7 +62,7 @@ class Request(object):
detect_encoding: bool=True, detect_encoding: bool=True,
parser: str="lxml", fallback_encoding="iso-8859-1", parser: str="lxml", fallback_encoding="iso-8859-1",
content_type: str=None, content_type: str=None, proxy: str=None,
**kwargs): **kwargs):
self.set_url(url) self.set_url(url)
@ -80,6 +80,7 @@ class Request(object):
self.parser = parser self.parser = parser
self.fallback_encoding = fallback_encoding self.fallback_encoding = fallback_encoding
self.content_type = content_type self.content_type = content_type
self.proxy = proxy
if kwargs: if kwargs:
if method == "POST": if method == "POST":