Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/flask
/ before
Function
before
tests/test_async.py:110–112 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
108
109
@app.before_request
110
async
def
before():
111
nonlocal app_before_called
112
app_before_called = True
113
114
@app.after_request
115
async
def
after(response):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected