I am finally getting chance to start with HttpClient 5 and HTTP/2.  I am 
currently using 4.4.

I am first trying to do a relatively simple port, meaning that I am trying to 
keep as much of the existing code as I can.  I already have an internal API 
that reads the entity objects from the CloseableHttpResponse, so I am trying to 
get something that looks as close to that as possible.

Looking at the examples, I think I need to use the Async client for HTTP/2.  I 
created a CloseableHttpAsyncClient which I can call execute on and get a 
SimpleHttpResponse.  However, this object doesn't give me anything I can easily 
convert to an input stream, just things like getText() and getBytes().  Getting 
an input stream is pretty fundamental to my internal API, so not being able to 
get that is going to make my job quite a bit more difficult.

If I use a different call to execute() and get a ResponseConsumer, it looks 
like I can do more stream like things, but seems like a lot for the little I 
want.

I certainly still need to poor over the examples ore and try to figure all this 
out.  However, a nudge in the right direction would be extremely appreciated.

Thanks!

Mark Claassen
Senior Software Engineer

Donnell Systems, Inc.
130 South Main Street
Leighton Plaza Suite 375
South Bend, IN  46601
E-mail: mailto:[email protected]
Voice: (574)232-3784
Fax: (574)232-4014

Disclaimer:
The opinions provided herein do not necessarily state or reflect
those of Donnell Systems, Inc.(DSI). DSI makes no warranty for and
assumes no legal liability or responsibility for the posting.

Reply via email to