(bytes: bytes, count: int)
| 73 | def test_gzip_streaming_response(test_client_factory: TestClientFactory) -> None: |
| 74 | def homepage(request: Request) -> StreamingResponse: |
| 75 | async def generator(bytes: bytes, count: int) -> ContentStream: |
| 76 | for index in range(count): |
| 77 | yield bytes |
| 78 | |
| 79 | streaming = generator(bytes=b"x" * 400, count=10) |
| 80 | return StreamingResponse(streaming, status_code=200) |