hooks=None,
params=None,
config=None,
+ prefetch=False,
verify=True):
self.headers = headers or {}
self.hooks = hooks or {}
self.params = params or {}
self.config = config or {}
+ self.prefetch = prefetch
self.verify = verify
for (k, v) in list(defaults.items()):
headers = {} if headers is None else headers
params = {} if params is None else params
hooks = {} if hooks is None else hooks
+ prefetch = self.prefetch or prefetch
# use session's hooks as defaults
for key, cb in list(self.hooks.items()):
allow_redirects=allow_redirects,
proxies=proxies,
config=config,
+ prefetch=prefetch,
verify=verify,
_poolmanager=self.poolmanager
)