You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Olivier Lamy <ol...@apache.org> on 2014/04/15 08:47:37 UTC
Stop reading http response
Hi,
In case of 200 (or any other return code), I'd like to be able to not
read headers body because I simply don't care as it's not an error and
I want to avoid fill memory with the content.
Is there any was to do that? (with non async or async)
Thanks,
--
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: Stop reading http response
Posted by Oleg Kalnichevski <ol...@ok2consulting.com>.
Hi Olivier
HC (both classic and async) always delivers message heads as one entity. I see little reason to trigger a separate event for status line given that http message heads are almost always transmitted in one tcp frame and HC parses headers lazily. There is very little overhead.
Oleg
On April 15, 2014 8:47:37 AM CEST, Olivier Lamy <ol...@apache.org> wrote:
>Hi,
>
>In case of 200 (or any other return code), I'd like to be able to not
>read headers body because I simply don't care as it's not an error and
>I want to avoid fill memory with the content.
>Is there any was to do that? (with non async or async)
>
>Thanks,
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org