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

Function _view_wrapper

django/views/decorators/cache.py:43–47  ·  view source on GitHub ↗
(request, *args, **kw)

Source from the content-addressed store, hash-verified

41 if iscoroutinefunction(viewfunc):
42
43 async def _view_wrapper(request, *args, **kw):
44 _check_request(request, "cache_control")
45 response = await viewfunc(request, *args, **kw)
46 patch_cache_control(response, **kwargs)
47 return response
48
49 else:
50

Callers

nothing calls this directly

Calls 3

patch_cache_controlFunction · 0.90
add_never_cache_headersFunction · 0.90
_check_requestFunction · 0.85

Tested by

no test coverage detected