HttpAsyncClient Examples

  • Asynchronous HTTP exchange

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

  • Event based content streaming

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

  • Concurrent asynchronous HTTP exchanges

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

  • Zero copy file upload / download

    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).