Skip to content
Myr

Allow mixing sessions and async.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Hank Gay · committed by Hank Gay · parent df0dc2b · Browse files · 1 file+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−3 removed

  • other:+5 added−3 removed

1 file+5 added−3 removed

modified:requests/models.py+5 added-3 removed
55 unmodified lines
56 proxies=None,57 hooks=None,58 config=None,59 _poolmanager=None,60 verify=None):60 verify=None,61 session=None):6263 #: Float describes the timeout of the request.64 # (Use socket.setdefaulttimeout() as fallback)65 self.timeout = timeout
50 unmodified lines
116 #: Event-handling hooks.117 self.hooks = hooks118119 #: Session.119 self.session = None120 self.session = session121122 #: SSL Verification.123 self.verify = verify124
121 unmodified lines
246 config=self.config,247 timeout=self.timeout,248 _poolmanager=self._poolmanager,249 proxies = self.proxies,249 verify = self.verify250 verify = self.verify,251 session = self.session252 )253254 request.send()255 cookies.update(request.response.cookies)
454 unmodified lines