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

Method get_response

tests/cache/tests.py:1101–1104  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

1099 content = "Testing cookie serialization."
1100
1101 def get_response(req):
1102 response = HttpResponse(content)
1103 response.set_cookie("foo", "bar")
1104 return response
1105
1106 update_middleware = UpdateCacheMiddleware(get_response)
1107 response = update_middleware(request)

Callers

nothing calls this directly

Calls 2

HttpResponseClass · 0.90
set_cookieMethod · 0.45

Tested by

no test coverage detected