Sona30 / 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 the content type. #289

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Let's say I attempt to download some media, for example like this:

  gcs_client.objects().get_media(bucket="buck", object="obj")

The server provides a Content-Type header that tells me what sort of thing is 
being downloaded. However, that data is not exposed via the client.

I would like a way to discover the content-type of a downloaded object.

Original issue reported on code.google.com by yarbro...@google.com on 16 Jul 2013 at 6:28

GoogleCodeExporter commented 8 years ago
Isn't the content already available in the metadata for the object? So this is 
a request for a second way of obtaining that information?

In addition, 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:54