debbiereid / google-api-java-client

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

A way of determining the size of the response #881

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The HttpResponse that comes back from requests provides an InputStream for 
streaming the response, but it would be lovely if there were some way to know 
the size of the response without reading the InputStream.

Original issue reported on code.google.com by yarbro...@google.com on 29 May 2014 at 7:33

GoogleCodeExporter commented 9 years ago
That InputStream was returned by the underlining socket API. We did so to avoid 
data copying. What's your use case of knowing the size beforehand?

Original comment by wonder...@google.com on 1 Jul 2014 at 6:43

GoogleCodeExporter commented 9 years ago

Original comment by wonder...@google.com on 9 Jul 2014 at 4:54