[ 
https://issues.apache.org/jira/browse/HTTPCORE-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17254306#comment-17254306
 ] 

ASF subversion and git services commented on HTTPCORE-656:
----------------------------------------------------------

Commit 158ae43937467ba38fb038c58b415ddd7417ab96 in httpcomponents-core's branch 
refs/heads/master from Marcono1234
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-core.git;h=158ae43 ]

HTTPCORE-656: Improve HttpEntity.getContent() documentation (#238)



> Explicitly mention in HttpEntity.getContent() javadoc that closing 
> InputStream will consume content
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-656
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-656
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Marcono1234
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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|https://hc.apache.org/httpcomponents-client-4.4.x/tutorial/html/fundamentals.html#d5e145],
>  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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to