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

Method _html_response_wrapper

dash/backends/_fastapi.py:311–317  ·  view source on GitHub ↗
(self, view_func: Callable[..., Any] | str)

Source from the content-addressed store, hash-verified

309 self.error_handling_mode = "raise"
310
311 def _html_response_wrapper(self, view_func: Callable[..., Any] | str):
312 async def wrapped(*_args, **_kwargs):
313 # If view_func is a function, call it; if it's a string, use it directly
314 html = view_func() if callable(view_func) else view_func
315 return Response(content=html, media_type="text/html")
316
317 return wrapped
318
319 def setup_index(self, dash_app: Dash):
320 async def index(_request: Request):

Callers 1

add_url_ruleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected