Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Could the documentation of org.apache.http.HttpEntity.getContent() please be improved to explicitly mention that calling close() on the returned InputStream will try to consume the remaining entity content?
This is mentioned in the tutorial, but the javadoc only contains an "IMPORTANT" section which seems to be addressed to implementers, but not users. Maybe it would also be good to additionally link to the tutorial from the documentation of the method.
It appears the documentation not being explicit about this might be the reason for HTTPCORE-402 and other issues users are having when close() is blocking for them.