add aborter object to app

This commit is contained in:
dzcode 2022-05-02 10:16:12 -06:00 committed by David Lord
parent a25d234cdd
commit eb5dd9f5ef
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
5 changed files with 92 additions and 1 deletions

View file

@ -5,6 +5,10 @@ Version 2.2.0
Unreleased
- Add ``aborter_class`` and ``aborter`` attributes to the Flask app
object. ``flask.abort`` will call ``app.aborter``. This makes it
possible for an app to override how aborts work, including custom
status codes. :issue:`4567`
- Add an ``app.redirect`` method, which ``flask.redirect`` will call.
This makes it possible for an app to override how redirects work.
:issue:`4569`