MCPcopy
hub / github.com/django/django / _precondition_failed

Function _precondition_failed

django/utils/cache.py:127–135  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

125
126
127def _precondition_failed(request):
128 response = HttpResponse(status=412)
129 log_response(
130 "Precondition Failed: %s",
131 request.path,
132 response=response,
133 request=request,
134 )
135 return response
136
137
138def _not_modified(request, response=None):

Callers 1

get_conditional_responseFunction · 0.85

Calls 2

HttpResponseClass · 0.90
log_responseFunction · 0.90

Tested by

no test coverage detected