MCPcopy Index your code
hub / github.com/plotly/dash / _run_before_hooks

Method _run_before_hooks

dash/backends/_fastapi.py:161–167  ·  view source on GitHub ↗

Run all before-request hooks.

(self)

Source from the content-addressed store, hash-verified

159 }
160
161 async def _run_before_hooks(self) -> None:
162 """Run all before-request hooks."""
163 for func in self.before_request_funcs:
164 if inspect.iscoroutinefunction(func):
165 await func()
166 else:
167 func()
168
169 async def _run_after_hooks(self) -> None:
170 """Run after-request hook if configured."""

Callers 1

__call__Method · 0.95

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected