SmartDroidDeveloper / google-api-java-client

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

Streaming mode for HTTP request content for HttpURLConnection #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://developer.android.com/reference/java/net/HttpURLConnection.html

Java environments (e.g. Java 6, Android 2.3, App Engine 1.4.2, or All)?

All users of HttpURLConnection

Please describe the feature requested.

Quoted from above:

"For best performance, you should call either setFixedLengthStreamingMode(int) 
when the body length is known in advance, or setChunkedStreamingMode(int) when 
it is not. Otherwise HttpURLConnection will be forced to buffer the complete 
request body in memory before it is transmitted, wasting (and possibly 
exhausting) heap and increasing latency."

Original issue reported on code.google.com by yan...@google.com on 5 Apr 2011 at 7:38

GoogleCodeExporter commented 9 years ago
http://codereview.appspot.com/4354051/

Original comment by yan...@google.com on 5 Apr 2011 at 7:54

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 5 Apr 2011 at 7:57