after_app_request() — flask Function Reference
Architecture documentation for the after_app_request() function in blueprints.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD dcc61990_260c_6cd0_006b_4c083cab4568["after_app_request()"] 0c59fa87_9a90_f011_4207_98ae96479921["Blueprint"] dcc61990_260c_6cd0_006b_4c083cab4568 -->|defined in| 0c59fa87_9a90_f011_4207_98ae96479921 0085606d_b5d3_d0dc_0155_6135d079c059["record_once()"] dcc61990_260c_6cd0_006b_4c083cab4568 -->|calls| 0085606d_b5d3_d0dc_0155_6135d079c059 style dcc61990_260c_6cd0_006b_4c083cab4568 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/flask/sansio/blueprints.py lines 624–631
def after_app_request(self, f: T_after_request) -> T_after_request:
"""Like :meth:`after_request`, but after every request, not only those handled
by the blueprint. Equivalent to :meth:`.Flask.after_request`.
"""
self.record_once(
lambda s: s.app.after_request_funcs.setdefault(None, []).append(f)
)
return f
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does after_app_request() do?
after_app_request() is a function in the flask codebase, defined in src/flask/sansio/blueprints.py.
Where is after_app_request() defined?
after_app_request() is defined in src/flask/sansio/blueprints.py at line 624.
What does after_app_request() call?
after_app_request() calls 1 function(s): record_once.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free