Skip to content
Myr

remove Request.send(session)

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent a7239aa · Browse files · 1 file+2 added−6 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+2 added−6 removed

  • other:+2 added−6 removed

1 file+2 added−6 removed

modified:requests/models.py+2 added-6 removed
575 unmodified lines
576 hooks = hooks or []577 for event in hooks:578 self.register_hook(event, hooks[event])579580 def send(self, session):581 """Sends the given PreparedRequest to the given session."""582 return session.send(self)580584581class Response(object):582 """The :class:`Response <Response>` object, which contains a583 server's response to an HTTP request.584 """
124 unmodified lines
709 def is_permanent_redirect(self):710 """True if this Response one of the permanent versions of redirect."""711 return ('location' in self.headers and self.status_code in (codes.moved_permanently, codes.permanent_redirect))712713 @property714 def next(self):715 """Returns a PreparedRequest for the next request in a redirect chain, if there is one."""719 if self.is_redirect:720 return self._next716 return self._next717718 @property719 def apparent_encoding(self):720 """The apparent encoding, provided by the chardet library."""
227 unmodified lines