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

Function _view_wrapper

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

Source from the content-addressed store, hash-verified

20 if iscoroutinefunction(func):
21
22 async def _view_wrapper(request, *args, **kwargs):
23 response = await func(request, *args, **kwargs)
24 patch_vary_headers(response, headers)
25 return response
26
27 else:
28

Callers

nothing calls this directly

Calls 1

patch_vary_headersFunction · 0.90

Tested by

no test coverage detected