hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav Kumar <gauravphoe...@gmail.com>
Subject Re: asynchronously getting response status and headers in async httpclient
Date Fri, 10 Jan 2014 21:00:01 GMT
I just found found out the answer to my related question -how to access raw
bytes asynchronously. One can use

On Fri, Jan 10, 2014 at 12:49 PM, Gaurav Kumar <gauravphoenix@gmail.com>wrote:

> I went through the examples<http://hc.apache.org/httpcomponents-asyncclient-dev/examples.html>
> couldn't find a simple way to asynchronously read response status and
> headers. This<http://hc.apache.org/httpcomponents-asyncclient-dev/httpasyncclient/examples/org/apache/http/examples/nio/client/AsyncClientConfiguration.java>
> shows how to use responseParserFactory but I think it is too complex for
> my need. I just need a simple callback something like onHeadersReceive(),
> onStatusReceive() and onBodyReceive().
> On a related note, this<http://hc.apache.org/httpcomponents-asyncclient-dev/httpasyncclient/examples/org/apache/http/examples/nio/client/AsyncClientHttpExchangeStreaming.java>example
is great for textual entities but how do I handle non-textual
> entities. In other words, is there a simple way to get access to raw bytes
> received asynchronously?
> Thanks,
> Gaurav

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message