Home | History | Annotate | Download | only in webapp2

Lines Matching defs:redirect

600     def redirect(self, uri, permanent=False, abort=False, code=None,
602 """Issues an HTTP redirect to the given relative URI.
604 The arguments are described in :func:`redirect`.
606 return redirect(uri, permanent=permanent, abort=abort, code=code,
612 """Convenience method mixing :meth:`redirect` and :meth:`uri_for`.
614 The arguments are described in :func:`redirect` and :func:`uri_for`.
617 return self.redirect(uri, permanent=_permanent, abort=_abort,
662 """Performs a redirect.
668 - **_code**: The redirect status code. Default is 301 (permanent
669 redirect).
679 self.redirect(uri, permanent=permanent, code=code)
1736 def redirect(uri, permanent=False, abort=False, code=None, body=None,
1738 """Issues an HTTP redirect to the given relative URI.
1743 return redirect('/some-path')
1748 If True, uses a 301 redirect instead of a 302 redirect.
1750 If True, raises an exception to perform the redirect.
1752 The redirect status code. Supported codes are 301, 302, 303, 305,
1753 and 307. 300 is not supported because it's not a real redirect
1776 'Invalid redirect status code.'
1797 """Convenience function mixing :func:`redirect` and :func:`uri_for`.
1799 Issues an HTTP redirect to a named URI built using :func:`uri_for`.
1802 The route name to redirect to.
1810 The other arguments are described in :func:`redirect`.
1813 return redirect(uri, permanent=_permanent, abort=_abort, code=_code,