MCPcopy
hub / github.com/django/django / _view_wrapper

Function _view_wrapper

django/views/decorators/clickjacking.py:18–22  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

16 if iscoroutinefunction(view_func):
17
18 async def _view_wrapper(*args, **kwargs):
19 response = await view_func(*args, **kwargs)
20 if response.get("X-Frame-Options") is None:
21 response["X-Frame-Options"] = "DENY"
22 return response
23
24 else:
25

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected