Files
deb-python-falcon/doc/api
Kurt Griffiths b213399473 feat: Add redirection support via raising subclasses of HTTPStatus
Define a set of HTTPStatus subclasses that can be raised to perform
various types of HTTP redirects. This should avoid the problem of
hooks and responder methods possibly overriding the redirect. Raising
an instance of one of these classes and will short-circuit request
processing similar to raising an instance of HTTPError.

Specifically, if raised in a before hook, it will skip any remaining
hooks and the responder method, but will not skip any process_response
middleware methods. If raised within a responder, it will skip the
rest of the responder and all after hooks. If raised in an after hook,
it would skip remaining after hooks but not middleware methods. And
finally, if raised within a middleware method, execution would perceive
as described at the bottom of [1].

The above behavior is inherited from HTTPStatus and so is not re-tested
in the subclasses.

[1]: https://falcon.readthedocs.org/en/stable/api/middleware.html

Closes #406
2015-09-15 09:46:50 -05:00
..
2015-04-22 19:09:17 -05:00
2015-04-22 19:09:17 -05:00
2015-06-19 11:29:42 +02:00
2015-04-23 12:33:57 -05:00