sanic/examples/request_stream/client.py
2017-05-07 18:38:48 +09:00

11 lines
189 B
Python

import requests
# Warning: This is a heavy process.
data = ""
for i in range(1, 250000):
data += str(i)
r = requests.post('http://127.0.0.1:8000/bp_stream', data=data)
print(r.text)