File: redirects.rst

package info (click to toggle)
python-falcon 3.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,204 kB
  • sloc: python: 28,455; makefile: 184; sh: 139; javascript: 66
file content (20 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.. _redirects:

Redirection
===========

Falcon defines a set of exceptions that can be raised within a
middleware method, hook, or responder in order to trigger
a 3xx (Redirection) response to the client. Raising one of these
classes short-circuits request processing in a manner similar to
raising an instance or subclass of :py:class:`~.HTTPError`.

.. autoexception:: falcon.HTTPMovedPermanently

.. autoexception:: falcon.HTTPFound

.. autoexception:: falcon.HTTPSeeOther

.. autoexception:: falcon.HTTPTemporaryRedirect

.. autoexception:: falcon.HTTPPermanentRedirect