MCPcopy
hub / github.com/django/django / async_generic_view

Method async_generic_view

tests/test_client/tests.py:1305–1308  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

1303 with self.subTest(method=method_name):
1304
1305 async def async_generic_view(request):
1306 if request.method.lower() != method_name:
1307 return HttpResponseNotAllowed(method_name)
1308 return HttpResponse(status=200)
1309
1310 method = getattr(self.request_factory, method_name)
1311 request = method("/somewhere/")

Callers

nothing calls this directly

Calls 2

HttpResponseClass · 0.90

Tested by

no test coverage detected