siphon icon indicating copy to clipboard operation
siphon copied to clipboard

Improve urlopen

Open dopplershift opened this issue 7 years ago • 1 comments

Currently, this is what urlopen does:

BytesIO(create_http_session().get(url, **kwargs).content)

As we start to use this more, it would be good to provide an implementation that's smarter and only downloads bytes on request (when possible), using things like HTTP Byte-Range requests.

dopplershift avatar Jul 20 '17 20:07 dopplershift

For reference:

dopplershift avatar Aug 13 '18 15:08 dopplershift