justinpaulson / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

get_media does not expose range info. #290

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Let's say I attempt to download a certain range of data in this manner:

  request = gcs_client.objects().get_media(bucket='buck', object='obj')
  request.headers['Range'] = 'bytes=10-20'
  data = request.execute()

In this scenario, I cannot access the Content-Range header, and so I do not 
know whether the server gave me exactly these 10 bytes or some larger range of 
bytes, nor can I tell if the server responded with a 200 or a 206.

Original issue reported on code.google.com by brand...@gmail.com on 16 Jul 2013 at 6:32

GoogleCodeExporter commented 8 years ago

Original comment by jcgregorio@google.com on 5 Aug 2013 at 1:51

GoogleCodeExporter commented 8 years ago
In version 1.2 of the client library will have callbacks that allow access to 
the response object.

Original comment by jcgregorio@google.com on 5 Aug 2013 at 1:55