MCPcopy
hub / github.com/django/django / get_response

Method get_response

django/core/handlers/base.py:138–152  ·  view source on GitHub ↗

Return an HttpResponse object for the given HttpRequest.

(self, request)

Source from the content-addressed store, hash-verified

136 return method
137
138 def get_response(self, request):
139 """Return an HttpResponse object for the given HttpRequest."""
140 # Setup default url resolver for this thread
141 set_urlconf(settings.ROOT_URLCONF)
142 response = self._middleware_chain(request)
143 response._resource_closers.append(request.close)
144 if response.status_code >= 400:
145 log_response(
146 "%s: %s",
147 response.reason_phrase,
148 request.path,
149 response=response,
150 request=request,
151 )
152 return response
153
154 async def get_response_async(self, request):
155 """

Callers 1

__call__Method · 0.45

Calls 3

set_urlconfFunction · 0.90
log_responseFunction · 0.90
appendMethod · 0.45

Tested by

no test coverage detected