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: [email protected] For additional commands, e-mail: [email protected]
