You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Want to download an object along with its associated metadata, and I imagine that's a common use-case. The download_file method already issues a head request in order to get content length and decide whether to use multipart or not. Could you provide some kind of public API to capture this head_object so we don't need to make an extra request (slow, wasteful, and adds more race conditions)? I'm not sure the best interface, maybe just use the return value of download_file (currently just returns None) or add container/callback as optional argument.
The text was updated successfully, but these errors were encountered:
I have a very similar feature request. I avoid the head request by passing a subscriber and calling provide_transfer_size - but I still need to get the response metadata, which could come from either the head or the get request. In case of multipart get, it gets a little weird since there will be multiple responses with (hopefully) identical metadata - but I think it's fair to expect the caller to deal with that.
I'm thinking of adding an on_start (or on_response?) to BaseSubscriber, and calling it from here. I'll send out a PR once I get something working.
Want to download an object along with its associated metadata, and I imagine that's a common use-case. The
download_file
method already issues a head request in order to get content length and decide whether to use multipart or not. Could you provide some kind of public API to capture this head_object so we don't need to make an extra request (slow, wasteful, and adds more race conditions)? I'm not sure the best interface, maybe just use the return value of download_file (currently just returnsNone
) or add container/callback as optional argument.The text was updated successfully, but these errors were encountered: