Tries to make the code easier to follow.
Also try to clarify our rules around the various output arguments the user can provide.
In particular, if a byte buffer is provided, the following rules must be followed:
it must be large enough to hold the object, either compressed or uncompressed
we will resize it down to the actual size of bytes downloaded
You can also provide an objectMaxSize keyword arg (in bytes) that can help avoid
a HEAD request for small objects.
Tries to make the code easier to follow. Also try to clarify our rules around the various output arguments the user can provide. In particular, if a byte buffer is provided, the following rules must be followed:
You can also provide an objectMaxSize keyword arg (in bytes) that can help avoid a HEAD request for small objects.