code: def get_redirects(self, request):
          
          kwargs = self.get_request_kwargs()
          return self.session.resolve_redirects(self.url_connection,
              request, **kwargs)
docs: Return iterator of redirects for given request.