MCPcopy
hub / github.com/plotly/dash / get_current_request

Function get_current_request

dash/backends/_fastapi.py:106–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104
105
106def get_current_request() -> Request:
107 req = _current_request_var.get()
108 if req is None:
109 raise RuntimeError("No active request in context")
110 return req
111
112
113_ENV_CONFIG = "_DASH_FASTAPI_CONFIG"

Callers 4

has_request_contextMethod · 0.85
__init__Method · 0.85
__call__Method · 0.85
get_jsonMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…