Skip to content
Myr

Updating documentation for app.after_request decorator.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Rémy Roy · committed by Armin Ronacher · parent a2225bf · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:flask/app.py+4 added-1 removed
711 unmodified lines
712 self.before_request_funcs.setdefault(None, []).append(f)713 return f714715 def after_request(self, f):716 """Register a function to be run after each request."""716 """Register a function to be run after each request. Your function717 must take one parameter, a :attr:`response_class` object and return718 a new response object or the same (see :meth:`process_response`).719 """720 self.after_request_funcs.setdefault(None, []).append(f)721 return f722723 def teardown_request(self, f):
294 unmodified lines