hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Potapov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPASYNC-62) ZeroCopyConsumer should set ContentType when creating FileEntity
Date Wed, 25 Dec 2013 12:57:51 GMT
Dmitry Potapov created HTTPASYNC-62:
---------------------------------------

             Summary: ZeroCopyConsumer should set ContentType when creating FileEntity
                 Key: HTTPASYNC-62
                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-62
             Project: HttpComponents HttpAsyncClient
          Issue Type: Improvement
    Affects Versions: 4.0 Final
            Reporter: Dmitry Potapov
            Priority: Trivial


Currently ZeroCopyConsumer.buildResult(...) creates FileEntity passing single argument to
c'tor. So, this entity cannot be passed to EntityUtils.toString(...) as single argument.
My suggestion is to pass content type received in response to the FileEntity c'tor.

Assumed use case is the situation when remote host returned non-200 status code and response
content is relatively short and contains error description.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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


Mime
View raw message