MCPcopy
hub / github.com/django/django / inner

Function inner

django/views/decorators/http.py:36–47  ·  view source on GitHub ↗
(request, *args, **kwargs)

Source from the content-addressed store, hash-verified

34
35 @wraps(func)
36 async def inner(request, *args, **kwargs):
37 if request.method not in request_method_list:
38 response = HttpResponseNotAllowed(request_method_list)
39 log_response(
40 "Method Not Allowed (%s): %s",
41 request.method,
42 request.path,
43 response=response,
44 request=request,
45 )
46 return response
47 return await func(request, *args, **kwargs)
48
49 else:
50

Callers

nothing calls this directly

Calls 4

log_responseFunction · 0.90
_pre_process_requestFunction · 0.70
_post_process_requestFunction · 0.70

Tested by

no test coverage detected