n
path
curl https://tcpdata.com/stream-bytes/50
fetch('https://tcpdata.com/stream-bytes/50')
.then(res => res.arrayBuffer())
.then(data => console.log(data.byteLength));
import requests
response = requests.get('https://tcpdata.com/stream-bytes/50', stream=True)
for chunk in response.iter_content(chunk_size=10):
print(len(chunk))