hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCLIENT-1511) Should be possible to retrieve the entity stream from a fluent respose
Date Fri, 23 May 2014 12:53:09 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Oleg Kalnichevski updated HTTPCLIENT-1511:

    Fix Version/s: Future

The original intent of HC fluent was to relieve the users from having to deal with connection
release, Unfortunately the only way of achieving that (I know of) is by buffering response
content in memory. You might be better off using HC native if memory efficiency is a concern
for you. Having said so I am fine with providing a more flexible ResponseHandler than the


> Should be possible to retrieve the entity stream from a fluent respose
> ----------------------------------------------------------------------
>                 Key: HTTPCLIENT-1511
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1511
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: Fluent HC
>    Affects Versions: 4.3.3
>            Reporter: Jochen Kemnade
>             Fix For: Future
> For a Response, there should be an easy way to retrieve/work with the returned entity's
stream, because you don't always want the create an in-memory copy of the whole content. You
should not have to write a custom ResponseHandler and have to implement the status line handling
> We could add EntityStreamHandler and Reponse.handleEntityStream(EntityStreamHandler)
or just make it easier to subclass BasicResponseHandler (i.e. not always convert to a String).

This message was sent by Atlassian JIRA

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

View raw message