MCPcopy
hub / github.com/django/django / iterator

Method iterator

tests/middleware/tests.py:969–971  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

967
968 async def get_stream_response(request):
969 async def iterator():
970 for chunk in self.sequence:
971 yield chunk
972
973 resp = StreamingHttpResponse(iterator())
974 resp["Content-Type"] = "text/html; charset=UTF-8"

Calls

no outgoing calls

Tested by

no test coverage detected