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

Method has_request_context

dash/backends/_fastapi.py:373–378  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

371 self._after_request_func = func
372
373 def has_request_context(self) -> bool:
374 try:
375 get_current_request()
376 return True
377 except RuntimeError:
378 return False
379
380 def run(self, dash_app: Dash, host, port, debug, **kwargs): # pylint: disable=R0912
381 frame = inspect.stack()[2]

Callers

nothing calls this directly

Calls 1

get_current_requestFunction · 0.85

Tested by

no test coverage detected