MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / main

Function main

python/examples/stream.py:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6async def main():
7 resp: Response = await rnet.get("https://httpbin.org/stream/20")
8 async with resp:
9 async with resp.stream() as streamer:
10 async for chunk in streamer:
11 print("Chunk: ", chunk)
12 await asyncio.sleep(0.1)
13
14
15if __name__ == "__main__":

Callers 1

stream.pyFile · 0.70

Calls 2

getMethod · 0.45
streamMethod · 0.45

Tested by

no test coverage detected