HttpAsyncClient Examples

This example demonstrates a basic asynchronous HTTP request / response exchange. Response content is buffered in memory for simplicity.

This example demonstrates an asynchronous HTTP request / response exchange with a full content streaming.

This example demonstrates a fully asynchronous execution of multiple HTTP exchanges where the result of an individual operation is reported using a callback interface.

This example demonstrates a pipelined execution of multiple HTTP request / response exchanges. Response content is buffered in memory for simplicity.

This example demonstrates a pipelined execution of multiple HTTP request / response exchanges with a full content streaming.

This example demonstrates how to send an HTTP request via a proxy.

This example demonstrates how to customize and configure the most common aspects of HTTP request execution and connection management.

This example demonstrates the use of a local execution context with custom context settings.

This example demonstrates execution of an HTTP request against a target site that requires user authentication.

This example shows execution of an HTTP request over a secure connection tunneled through an authenticating proxy.

This example demonstrates how to create secure connections with a custom SSL context.

This example demonstrates how HttpAsyncClient can be used to upload or download files without creating an intermediate content buffer in memory (zero copy file transfer).

This example demonstrates how to evict expired and idle connections from the connection pool.