()
| 3 | |
| 4 | |
| 5 | def main(): |
| 6 | client = BlockingClient() |
| 7 | with client.get("https://httpbin.org/stream/20") as resp: |
| 8 | with resp.stream() as streamer: |
| 9 | for chunk in streamer: |
| 10 | print("Chunk: ", chunk) |
| 11 | time.sleep(0.1) |
| 12 | |
| 13 | |
| 14 | if __name__ == "__main__": |
no test coverage detected