Skip to content
Myr

Merge pull request #997 from charlax/ca/fix/response_class_documentation

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

Clarify the after_request argument

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parents 7a353a7, dfae267 · Browse files · 1 file+5 added−3 removed
This commit

State

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

Diff stats

1 file+5 added−3 removed

  • other:+5 added−3 removed

1 file+5 added−3 removed

modified:flask/app.py+5 added-3 removed
1217 unmodified lines
1218 return f12191220 @setupmethod1221 def after_request(self, f):1222 """Register a function to be run after each request. Your function1223 must take one parameter, a :attr:`response_class` object and return1224 a new response object or the same (see :meth:`process_response`).1222 """Register a function to be run after each request.12231224 Your function must take one parameter, an instance of1225 :attr:`response_class` and return a new response object or the1226 same (see :meth:`process_response`).12271228 As of Flask 0.7 this function might not be executed at the end of the1229 request in case an unhandled exception occurred.1230 """1231 self.after_request_funcs.setdefault(None, []).append(f)
628 unmodified lines