MCPcopy
hub / github.com/django/django / get_stream_response

Method get_stream_response

tests/middleware/tests.py:953–956  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

951 """
952
953 def get_stream_response(request):
954 resp = StreamingHttpResponse(self.sequence)
955 resp["Content-Type"] = "text/html; charset=UTF-8"
956 return resp
957
958 r = GZipMiddleware(get_stream_response)(self.req)
959 self.assertEqual(self.decompress(b"".join(r)), b"".join(self.sequence))

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected