You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Oleg Kalnichevski <ol...@apache.org> on 2017/03/01 13:14:43 UTC

New HttpAsyncClient 5.0 APIs

Folks

I put some examples that demonstrate the new HttpAsyncClient 5.0 APIs
in action. Please do feel free to take a look and comment, critique and
suggest improvements and changes

Simple async message exchanges (HTTP/1.1 and HTTP/2)

https://github.com/apache/httpclient/blob/trunk/httpclient5/src/examples/org/apache/hc/client5/http/examples/AsyncClientHttpExchange.java

Async message exchanges with response streaming (HTTP/1.1 and HTTP/2)

https://github.com/apache/httpclient/blob/trunk/httpclient5/src/examples/org/apache/hc/client5/http/examples/AsyncClientHttpExchangeStreaming.java

Pipelined message exchages (HTTP/1.1)

https://github.com/apache/httpclient/blob/trunk/httpclient5/src/examples/org/apache/hc/client5/http/examples/AsyncClientHttp1Pipelining.java

Multiplexed message exchages (HTTP/2)

https://github.com/apache/httpclient/blob/trunk/httpclient5/src/examples/org/apache/hc/client5/http/examples/AsyncClientHttp2Multiplexing.java

Server pushed message exchages (HTTP/2)

https://github.com/apache/httpclient/blob/trunk/httpclient5/src/examples/org/apache/hc/client5/http/examples/AsyncClientHttp2ServerPush.java

Oleg

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